Docker host is not running


I am using windows 7 machine.I installed docker toolbox having version 19.03.5.When I try to fetch docker machine ip am getting error

C:\Windows\system32>docker-machine ip
Error getting IP address: Host is not running

So when I check the docker status docker-machine status default it shows stopped.I tried to start using docker-machine start default getting error

C:\Windows\system32>docker-machine start default
Starting "default"...
(default) Check network to re-create if needed...
(default) Windows might ask for the permission to configure a dhcp server. Somet
imes, such confirmation window is minimized in the taskbar.
Error setting up host only network on machine start: C:\Program Files\Oracle\Vir
tualBox\VBoxManage.exe modifyvm default --nic2 hostonly --nictype2 82540EM --nic
promisc2 deny --hostonlyadapter2 VirtualBox Host-Only Ethernet Adapter #2 --cabl
econnected2 on failed:
VBoxManage.exe: error: Code E_FAIL (0x80004005) - Unspecified error (extended in
fo not available)
VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at lin
e 529 of file VBoxManageModifyVM.cpp

I am able to run docker commands.

When I run the command docker-machine ip on docker Quick start terminal it showing ip( I hit the ip getting unreachable.I able am to run the docker image also when I try to access the resources present in that getting unreachable.

Image: enter image description here

asked on Stack Overflow Jan 21, 2020 by nithin • edited Jan 22, 2020 by nithin

1 Answer


It looks like some network issue with Virtual Box for default VM used by Docker.

Try following steps

  • Open virtual box, stop default and remove it
  • Right-click Docker Quickstart, select run as administrator

It will setup default VM again in Virtual Box

Refer this for more detail

Note: You will lose all existing Docker Images if any.

Edit 1:

As per screenshot attached. Port needs to be exposed in order to make it accessible from Host machine.

docker run -p 9999:8082 nithin4325/demo

You can access it on

Assuming 8082 is your spring Application port configured and you want to access it to 9999 port on the host.

Assuming 9999 port is available on the host (no application is running on that port) else might throw Port already in use error

answered on Stack Overflow Jan 22, 2020 by MyTwoCents • edited Jan 22, 2020 by MyTwoCents

User contributions licensed under CC BY-SA 3.0