• Register
0 votes
9 views

Problem:

I am stuck during learning as I have already mentioned in my question someone please cooperate me to continue my project-Thanks

14.6k points
edited by

Please log in or register to answer this question.

2 Answers

0 votes

Solution:

If you started docker using sudo , then you should run docker-compose up with sudo Like: sudo docker-compose up

28.6k points
0 votes

Solution:

The Docker machine is running. But you need to export some environment to connect to the Docker machine. By default, the docker CLI client is trying to communicate to the daemon using http+unix://var/run/docker.sock (as shown in the error message).

Export the correct environment variables using eval $(docker-machine env dev) and then try again. You can also just run docker-machine env dev to see the environment variables it will export. Notice that one of them is DOCKER_HOST, just as the error message suggests you may need to set.

28.6k points