Caveat # 1: I read this answer , this answer , as well as other miriad answers / messages, and I still can't get it to work.
Caveat # 2: I'm new to docker, so I probably missed something very simple.
I run Docker on Windows and this is an ELK image 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 get access to ports 5601
and 9200
from a browser running on Windows, and keep getting a connection timeout. Here is what I did:
- I believe that the command
docker run
(above) forwards ports 5601 and 9200 from the container to the host docker (boot2docker VM) already, so this should be fine. - I got the IP address of the moose dock container by running
docker inspect $(docker ps -q) | grep IPA
docker in the CLI. It turned out 172.17.0.9
. Then I launched curl 172.17.0.9:5601
and curl 172.17.0.9:9200
. I was able to get the correct HTML responses from these URLs. This allowed me to verify that everything is working correctly in the docker container / hostel. - Then I got the IP address of the dock by running
docker-machine ip default
. It turned out to be 192.168.99.100. I believe that this is all I need to access the moose container from the docker host (in this case Windows), since port forwarding for the container is already installed. With this IP address I tried to go to http://192.168.99.100:5601
and http://192.168.99.100:9200
, and I got ERR_CONNECTION_TIMED_OUT
. I also tried using IE and even https
for kicks, and still have no luck. 192.168.99.100
DOS, . Windows ( ), .
?