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 had this problem with a fresh install of Docker on Windows 10. My issue was that I hadn't actually run Docker first; I just installed the .msi and ran "docker-compose" from the command line.
Once I ran Docker, (and followed a few more post-installation steps, to include logging out of and restarting my computer) I was able to run docker-compose
without issue.
You and I may or may not have the same problem. In the link posted by @Haken Lid above, the issue is with the PATH environment variable not having the correct version of Python.
BUT, for me, the issue was that I had not set all of my environment variables, by running
eval $(docker-machine env <vmname>)
before I ran the docker-compose <any command>
.
I spent close to an hour fixing this issue on my Windows machine.
Settings...
. Go to Shared Drives
and select C:
drive. You will be prompted for credentials. [*]docker build .
Run docker-compose up
.
[*]: If you don't do this step you might see this error when on step 6: ERROR: for website Cannot create container for service website: C: drive is not shared. Please share it in Docker for Windows Settings
. If after entering your credentials the C: drive isn't checked, create a new user for your machine that has full access to the folder where you will run docker-compose up
.
Quitting Docker and stopping Docker VM solved this for me.
I ran into this issue after the Docker Quickstart Terminal hanged a while on "Waiting for an IP..." during start up.
Restarting the Docker Quickstart Terminal fixed everything.
You can set properties by typing the following commands:
docker-machine env --shell cmd default
@FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd default') DO @%i