Caveat # 1: I've read this answer, this answer, and a miriad other answers/posts and I still can't get it to work.
Caveat # 2: I'm new to docker, so I'm probably missing something really simple.
I'm running Docker on Windows, and have this ELK image running which I launched with this command:
sudo docker run -p 5601:5601 -p 9200:9200 -p 5000:5000 -it --name elk sebp/elk
I'm trying to access ports 5601
and 9200
from a browser running on Windows, and I keep getting a connection timeout. Here's what I've done:
- I believe the
docker run
command (above) is forwarding ports 5601 and 9200 from the container to the docker host (boot2docker VM) already, so that should be fine. - I got the elk docker container IP by running
docker inspect $(docker ps -q) | grep IPA
on the docker CLI. This turned out to be172.17.0.9
. I then rancurl 172.17.0.9:5601
andcurl 172.17.0.9:9200
. I was able to get proper HTML responses from those URLs. This allowed me to verify things were running properly in the docker container/host. - Then I got the docker host's IP by running
docker-machine ip default
. This turned out to be 192.168.99.100. I believe this is all I need to access the elk container from the docker host (Windows in this case), since port forwarding for the container was already set. With that IP, I tried going tohttp://192.168.99.100:5601
andhttp://192.168.99.100:9200
and I getERR_CONNECTION_TIMED_OUT
. I also tried using IE, and evenhttps
for kicks, and still no luck. - I also tried pinging
192.168.99.100
from DOS, but was unable to get a response. I tried relaxing the firewall rules in Windows (just for kicks again) and I got nothing.
What am I missing?