Docker Community Forums

Share and learn in the Docker community.

Allow LAN computers to access webserver in exposed port in docker host

Good day,

I have a ubuntu container running apache in bridge mode 172.17.0.3 and an Ubuntu host running 192.168.10.2.
I run the container with
docker run -d -p 8080:80 -it --name apache apache-template04

from the docker host, I can see the webserver running and connect to it with curl http://192.168.10.2:8080

from the container, I can ping routers and other types of equipment in the LAN

but from machines in the 192.168.10.X network, I get a timeout when connecting to http://192.168.10.2:8080
Note: in this docker host ubuntu machine, UFW is disabled.
The only rule running is the iptables rule that Docker creates automatically to allow my container to access the LAN.

What am I missing?.

print here this from container:

iptables -L -n -v --line-numbers

and perhaps also from the host…