I have recently installed Docker Toolbox on my Windows 10 machine.
However, whenever I run docker-compose up
I get the following error message:
I just forgot to start "Docker for Windows" which resulted in that error.
Run docker-compose
with the Docker Quickstart Terminal. It will solve your error.
The Docker Quickstart Terminal is mostly a regular shell but allows to create a default machine. It can be used to connect to other machines as well:
eval $(docker-machine env <MACHINE_NAME>)
Make sure Docker for Windows is up and running in the system tray. That was my problem.
In Docker Quickstart Terminal I ran docker-machine env
, and it gave me:
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.99.100:2376"
export DOCKER_CERT_PATH="C:\Users\TheGeniesis\.docker\machine\machines\default"
export DOCKER_MACHINE_NAME="default"
export COMPOSE_CONVERT_WINDOWS_PATHS="true"
#### Run this command to configure your shell:
eval $("C:\Program Files\Docker Toolbox\docker-machine.exe" env)
I ran eval $("C:\Program Files\Docker Toolbox\docker-machine.exe" env)
. That's it!
This solution was copied from this issue. I'm on a Windows 10 Home. This solved my problem.