Unable to connect to docker process

I use boot2docker in windows Docker version: Client version: 0.12.0 Client API version: 1.12 Go version (client): go1.2.1 Git commit (client): 14680bf Server version: 0.12.0 Server API version: 1.12 Go version (server ): go1.2.1 Git commit (server): 14680bf

I basically look through the user manual, everything works as planned, but it looks through the training jar application ( http://docs.docker.com/userguide/usingdocker/ ) my browser cannot connect to the web server.

I tried every version of my ip address, hostname, ... nothing. Always "unable to connect."

The docker image is working fine:

8e9f917617ef training / webapp: last python app.py 15 seconds ago Up 14 seconds 0.0.0.0:49153-> 5000 / tcp kickass_carson

Since this is the main guide, I would expect that all the bases will be covered ... but maybe something is not indicated in the windows (or boot2docker). I just can’t find it.

+4
source share
3 answers

creack gave me a hint - I specifically did not look at boot2docker. It has its own IP address - usually this one: $ boot2docker ip 192.168.59.103

So now I am using http://192.168.59.103:49153. I got a hello world.

+7
source

, boot2docker Windows, ( ) , 49000 50000 . - http://localhost:<port>

+2

, "boot2docker ip" Windows ,

, .103, , ....

netstat -r , .3, VM.   192.168.59.0 255.255.255.0 On-link 192.168.59.3   192.168.59.3 255.255.255.255 On-link 192.168.59.3 192.168.59.255 255.255.255.255 On-link 192.168.59.3

, - 103,

+2

Source: https://habr.com/ru/post/1544461/


All Articles