1

I am running docker in windows 10 professional edition. I need to access to container with browser. screenshot of running container
I tried to access by typing : http://172.17.0.2:9000 and http://localhost:9000

But my browser says:

This site can’t be reached
172.17.0.2 took too long to respond.

Any ideas to resolve this?

13
  • are you running docker toolbox ? May 15, 2019 at 8:52
  • No i use docker desktop : Docker for Windows ( Hyper-V)
    – tadab
    May 15, 2019 at 8:54
  • did you follow the solution i shared? May 15, 2019 at 9:04
  • Yes i tried with simpleDockerUI but still not working , i have the message "unable to connect" when i test connection to Docker Remote API
    – tadab
    May 15, 2019 at 9:16
  • try portainer/portainer image May 15, 2019 at 9:18

3 Answers 3

1

use simpleDockerUI which is a chrome extension. and enter you docker daemon IP https://"docker-machine ip":2376

before connecting via simpleDockerUI, import the docker certificates
inside the chrome certificates

go to the folder where docker certificates are installed(in my machine it was in C:\Users\"name"\.docker\machine\machines\default)
then do the following steps

1) $ cat cert.pm ca.pem >> clientcertchain.pem
2) $ openssl pkcs12 -inkey key.pm -in clientcertchain.pem -export -out import.pfx -passout pass:"password"
3) now go to google chrome setting --> manage certificates
4) under trusted root certification authoirities import ca.pem. it will prompt for password ( same as above)
5) import import.pfx as a personal certificate under personal certificate tab (it will ask to set the password so set it)

to test the connection open new tab in google chrome and type https://ip:2376/_ping
you should get OK response

or use portainer image
docker run -d -p 9000:9000 portainer/portainer

1

Your container web service should start using 0.0.0.0 host instead localhost, in that way you can access from your local machine.

0

Simply Go to Settings -> General -> activate Expose daemon

Expose daemon on tcp://localhost:2375 without TLS: Click this option to enable legacy clients to connect to the Docker daemon. You must use this option with caution as exposing the daemon without TLS can result in remote code execution attacks.

https://docs.docker.com/docker-for-windows/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.