1

I am a newbie with docker. I need to use it at windows 7*64 , via docker toolbox. I need to make a connection to server below:

Run the server:

docker run -p 4444:4444 mycontainerWithServer

After this i open new docker toolbox window and try to connect to localhost:4444. I get ConnectionRefused error.

Vova
  • 563
  • 8
  • 20
  • 1
    Possible duplicate of [Docker Toolbox - Localhost not working](https://stackoverflow.com/questions/42866013/docker-toolbox-localhost-not-working) – Falco Alexander Nov 02 '18 at 09:28
  • probably, yes, i quickly tried that solution and it seems to be working. I couldn't find it before, thanks – Vova Nov 02 '18 at 09:52

1 Answers1

0

Because you are using the Docker toolbox you don't access your containers on localhost. The toolbox uses 192.168.99.100 by default because it is running on a Linux VM. Try replacing localhost with the VM IP.

Rodi
  • 122
  • 8