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

后端 未结 10 2199
悲&欢浪女
悲&欢浪女 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:31

    I just forgot to start "Docker for Windows" which resulted in that error.

    0 讨论(0)
  • 2021-02-11 12:31

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

    0 讨论(0)
  • 2021-02-11 12:34

    Make sure Docker for Windows is up and running in the system tray. That was my problem.

    0 讨论(0)
  • 2021-02-11 12:49

    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.

    0 讨论(0)
提交回复
热议问题