Docker daemon not running in Docker toolbox

Jacob picture Jacob · Feb 1, 2018 · Viewed 9k times · Source

I created a sample microservice application with war file. After that I installed Docker tool box. Then I created sample Dockerfile and trying to build image using Docker toolbox quick start terminal.

I changed directory to project root directory, and ran the following command:

docker build -t "dockerDemo" .

And getting error like Docker daemon is not running.

And also I run the following commands:

docker run hello-world
docker-machine ls

I am getting following results screens.

enter image description here

I am now just started with containers and Docker concept. How can I solve this?

Answer

andolsi zied picture andolsi zied · Feb 1, 2018

According to your screenshots, it's a pretty common issue. Unfortunately the only solution is to remove the vm and recreate it. You can find more details in this issue.

$ docker-machine rm default
$ docker-machine create --driver virtualbox default