1

I want to run Docker Compose on Windows 10. When I run docker-compose up, I get the following error message:

ERROR: Couldn't connect to Docker daemon. You might need to start Docker for Windows

I did not find a solution in the StackOverflow.

3 Answers 3

1

I have only seen this error when Docker Desktop is not currently running or it ran out of resources. Ensure that you have Docker Desktop installed and that it is running. Another possibility is that Docker is does not have enough resources to launch, so you will need to increase the resource limits. If this does not fix it, comment and let me know.

0

This error was caused by lack of memory in my machine. The Docker Desktop was not starting since it was configured to run with 2 GB.

To solve my problem, I changed this parameter in Settings -> Resources -> Memory, reducing it to the minimum allowed: 1 GB. I also changed the swap value (Settings -> Resources -> Swap), setting the value to its minimum (512 MB).

2
  • 2
    There is no such option for me. I'm using docker desktop v 2.3.0.3 (45519) Jul 26, 2020 at 15:24
  • @AvtarNanrey These settings are accessible from the docker icon that stays in the taskbar (right side)... Maybe some answer in the following link can help you to set your memory size: stackoverflow.com/questions/43460770/… Jul 27, 2020 at 14:30
0
# sudo docker-compose up 

try adding sudo

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.