connect to server runned in windows docker container

65 views Asked by At

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.

1

There are 1 answers

0
Rodi On BEST ANSWER

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.