Cannot access port on host mapped to docker container from other machines

  Kiến thức lập trình

deploying an application via Docker on a Ubuntu host and mapping ports to the host machine works fine for local access, remote access to the host from other machines is not successful.visit from remote machine will timeout, port listening but no connection.

My command like:

docker run --name kibana --link=elasticsearch:test -p 5601:5601 -d kibana:7.2.0

My try:

netstat -anptu | grep 5601

# tcp        0      0 0.0.0.0:5600            0.0.0.0:*               LISTEN      -
# tcp6       0      0 :::5600                 :::*                    LISTEN      -
sysctl net.ipv4.ip_forward

# net.ipv4.ip_forward = 1
ufw status

# Status: inactive

New contributor

K.Aguilar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT