Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Strange state of docker on Windows

Command

$ docker-machine ls

gives me

NAME      ACTIVE   DRIVER       STATE     URL   SWARM
default            virtualbox   Timeout

And If I run start.sh in Docker Toolbox I get

                    ##         .
              ## ## ##        ==
           ## ## ## ## ##    ===
       /"""""""""""""""""\___/ ===
  ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ /  ===- ~~~
       \______ o           __/
         \    \         __/
          \____\_______/

host is not running
docker is configured to use the default machine with IP

What does this state mean?

like image 917
mif Avatar asked Aug 18 '15 06:08

mif


2 Answers

To solve the issue go to your Virtual Box and delete the virtual machine altogether. Then launch your Docker Quickstart Terminal. It creates the VM from scratch if it's not present and connects to it.

I saw this after altering my Virtual Box Host Adapters (changed IPs).

like image 133
Dimo Avatar answered Nov 17 '22 02:11

Dimo


Docker machine gets timeout when we switch between wifi-networks/VPN. If we switch back to the same network where docker container was initiated, we can get back the docker-machine to running state.

If your not sure what network you started your docker-machine, then just restarting your computer must fix the problem.

like image 30
Suhail Taj Avatar answered Nov 17 '22 02:11

Suhail Taj