Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't connect to docker process

I'm using boot2docker on 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'm basically going through the user guide, everything is working as intended but on browsing to the training flask app (http://docs.docker.com/userguide/usingdocker/) my browser can't connect to the web server.

I've tried every version of my ip address(es), host name, ... nothing. Always "can't connect".

The docker image is running fine:

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

Since this is the basic guide, I would expect all bases covered ... but perhaps something windows (or boot2docker) specific isn't mentioned. Just can't find it.

like image 576
Bjorn Avatar asked Dec 19 '22 14:12

Bjorn


1 Answers

creack gave me the hint - I hadn't looked at boot2docker specifically. It has it's own ip address - typically this one: $ boot2docker ip 192.168.59.103

So now doing http:// 192.168.59.103:49153 I got 'hello world'.

like image 132
Bjorn Avatar answered Dec 30 '22 06:12

Bjorn