Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 642
Mr.DevEng Avatar asked Jan 29 '23 18:01

Mr.DevEng


1 Answers

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
like image 100
andolsi zied Avatar answered Jan 31 '23 07:01

andolsi zied