docker cannot start on windows

后端 未结 30 2426
北海茫月
北海茫月 2020-12-04 09:17

Executing docker version returns the following results.

C:\\Projects> docker version
Client:
 Version:      1.13.0-dev
 API version:  1.25
 G         


        
相关标签:
30条回答
  • 2020-12-04 09:56

    Try resolving the issue with either of the following options:

    Option A

    Start-Service "Hyper-V Virtual Machine Management"
    Start-Service "Hyper-V Host Compute Service"
    

    or

    Option B

    1. Open "Window Security"

    2. Open "App & Browser control"

    3. Click "Exploit protection settings" at the bottom

    4. Switch to "Program settings" tab

    5. Locate "C:\WINDOWS\System32\vmcompute.exe" in the list and expand it

    6. Click "Edit"

    7. Scroll down to "Code flow guard (CFG)" and uncheck "Override system settings"

    8. Start vmcompute from powershell "net start vmcompute"

    9. Then restart your system

    0 讨论(0)
  • 2020-12-04 09:56

    I too faced error which says

    "Access is denied. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running."
    

    Resolved this by running "powershell" in administrator mode.

    0 讨论(0)
  • 2020-12-04 10:00

    The error is related to that part:

    In the default daemon configuration on Windows, the docker client must be run elevated to connect

    You can do this in order to switch Docker daemon:

    1. Open Powershell as administrator
    2. Run following command:

    cd "C:\Program Files\Docker\Docker" ./DockerCli.exe -SwitchDaemon

    0 讨论(0)
  • 2020-12-04 10:00

    You need the admin privilege to run the service

    I had the similar issue. The problem goes away when I run command prompt ( run as an administrator" , and type " docker version".

    C:\WINDOWS\system32>docker version

    Client: Docker Engine - Community Version: 19.03.8 API version: 1.40 Go version: go1.12.17 Git commit: afacb8b Built: Wed Mar 11 01:23:10 2020 OS/Arch: windows/amd64 Experimental: false

    Server: Docker Engine - Community Engine: Version: 19.03.8 API version: 1.40 (minimum version 1.12) Go version: go1.12.17 Git commit: afacb8b Built: Wed Mar 11 01:29:16 2020 OS/Arch: linux/amd64 Experimental: false containerd: Version: v1.2.13 GitCommit: 7ad184331fa3e55e52b890ea95e65ba581ae3429 runc: Version: 1.0.0-rc10 GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd docker-init: Version: 0.18.0 GitCommit: fec3683

    0 讨论(0)
  • 2020-12-04 10:02

    I am using Windows 7 with Docker Toolbox and to fix it just open Docker Quickstart Terminal.

    $ docker version Client: Version: 17.05.0-ce API version: 1.29 Go version: go1.7.5 Git commit: 89658be Built: Fri May 5 15:36:11 2017 OS/Arch: windows/amd64

    Server: Version: 17.05.0-ce API version: 1.29 (minimum version 1.12) Go version: go1.7.5 Git commit: 89658be Built: Thu May 4 21:43:09 2017 OS/Arch: linux/amd64 Experimental: false

    0 讨论(0)
  • 2020-12-04 10:02

    Try running the following from an elevated command prompt:

    SET DOCKER_CERT_PATH=C:\Users\[YourName]\.docker\machine\machines\default
    SET DOCKER_HOST=tcp://[yourDockerDeamonIp]:2376
    SET DOCKER_MACHINE_NAME=default
    SET DOCKER_TLS_VERIFY=1
    SET DOCKER_TOOLBOX_INSTALL_PATH=C:\Program Files\Docker Toolbox
    

    You might also find that even without setting those env variables, running commands from the docker quick start terminal works no problem.

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