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 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
.