4

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?

halfer
  • 19,824
  • 17
  • 99
  • 186
Mr.DevEng
  • 2,651
  • 14
  • 57
  • 115

2 Answers2

8

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
andolsi zied
  • 3,553
  • 2
  • 32
  • 43
0

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.

OscarAkaElvis
  • 5,384
  • 4
  • 27
  • 51