Docker Community Forums

Share and learn in the Docker community.

Network issue with docker container and localhost

Hello everyone,

I need some help to find what’s wrong and what should I do to fix the issue.

I’m running docker on headless debian server (192.168.1.100), with one container which is listening on 8334 port.

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
99e7dba2d780 machines/filestash “/app/filestash” 33 hours ago Up 11 minutes 0.0.0.0:8334->8334/tcp filestash

I can connect to the container from my Local computer (192.168.1.50) with => http://192.168.1.100:8334/
No issue at all, docker container working great.

But when trying to connect from the server itself (localhost), I can’t…

curl -vv http://192.168.1.100:8334/ does not answer => timeout

I absolutely need the container to be reachable from localhost, because I want to use my reverse proxy to delivery content, and right now, my host machine can’t talk with the docker container.

I know docker create bridge interface and some iptables rules on purpose, and I think that’s the issue, but I can’t figure it out.

Any idea ?

Thank you very much !