Mr.DevEng
Mr.DevEng

Reputation: 2421

Docker daemon not running in Docker toolbox

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?

Upvotes: 4

Views: 10245

Answers (2)

andolsi zied
andolsi zied

Reputation: 3791

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

Upvotes: 8

OscarAkaElvis
OscarAkaElvis

Reputation: 5714

Delete de Docker toolbox virtualbox vm. It is usually named "default". Close and open again the docker console, it will create again the vm automatically. Then try again.

Upvotes: 0

Related Questions