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 ( my browser can’t connect to the web server.

  • How to define docker image name from within docker-compose.yml?
  • Continuous deployment & AWS autoscaling using Ansible (+Docker ?)
  • distributed tensorflow using docker
  • How can I see output from docker-compose services when running interactive command?
  • For multiple projects using Docker, use Multiple VMs or Single Host with multiple containters
  • Use senecajs with docker
  • 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 15 seconds ago
    Up 14 seconds>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.

  • Logging with docker-compose: Can I use two drivers at the same time?
  • Passing environment variables to Docker containers
  • Better Way for remote debugging Odoo/Python in docker container with Eclipse + Pydev?
  • Can I ask for RAM of container exceed the physical memory on the single host with Docker-Swarm
  • How to check that the docker container is restarted and accessible?
  • How to manage Docker container with dockerode
  • 3 Solutions collect form web for “Can't connect to docker process”

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

    So now doing http:// I got ‘hello world’.

    I am not sure how boot2docker works on windows, but check your VM config (within virtualbox) and make sure the ports 49000 to 50000 are forwarded to the host. You should then be able to access your flask app from http://localhost:<port>

    The fact “boot2docker ip” doesn’t work on windows by default is a pain

    As Bjorn did, I tried on .103 and it worked, but this is pure luck….

    When doing a netstat -r you see the entire address range is going to .3 , which must be the external VM address. On-link On-link On-link

    Finding out that the ultimate address is 103 is a challenge I couldn’t solve

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.