Docker Community Forums

Share and learn in the Docker community.

Ubuntu: cannot contact running containers on localhost anymore?!

docker

(Rony76) #1

Hi all,

I have just re-installed my Ubuntu (14.04) system e re-installed Docker.
I used to be able to contact my running containers on localhost, but for some reason now I can’t do that anymore. I’ve tried 127.0.0.1 as well, of course.
Inspecting a running container and its IPAddress I found what its IP is, and I can contact it there (it’s 172.17.0.2 in my case).
What could’ve changed?!
Sorry if this is a silly question, but I’m definitely no networking expert… :frowning:


Cannot create 'local' dockers after docker cloud agent is installed
(Dvohra) #2

Was localhost mapped to the Docker Ip in the /etc/hosts?
From where is the Docker container being accessed?


(Rony76) #3

Hi, thanks for your reply. I had to go through another installation, and now the problem doesn’t seem to replicate any longer. Sorry :frowning: