Docker Compose Up gives “The system cannot find the file specified.” error

后端 未结 10 2297
悲&欢浪女
悲&欢浪女 2021-02-11 11:44

I have recently installed Docker Toolbox on my Windows 10 machine.

However, whenever I run docker-compose up I get the following error message:

10条回答
  •  南笙
    南笙 (楼主)
    2021-02-11 12:24

    I spent close to an hour fixing this issue on my Windows machine.

    1. Install Python (version 3.6.1 worked fine for me), selecting the option "add to PATH".
    2. Install Docker.
    3. Reboot your machine.
    4. On your notification bar you'll see an icon for Docker. Right-click it and select Settings.... Go to Shared Drives and select C: drive. You will be prompted for credentials. [*]
    5. Run docker build .
    6. 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.

提交回复
热议问题