docker cannot start on windows

后端 未结 30 2429
北海茫月
北海茫月 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 10:15

    One of my friends was having a similar issue, we tried this and it worked.

    Hyper-V, despite being listed under "Turn Windows features on or off" as being active, was not in fact active. This became apparent when running systeminfo under PowerShell, and seeing that the requirements were listed as met (which is not the output you would expect were Hyper-V actually running).Steps:

    1. Open "Turn Windows features on or off"
    2. If you are not sure how to do this please refer https://www.howtogeek.com/250228/what-windows-10s-optional-features-do-and-how-to-[turn-them-on-or-off/][1]
    3. Turn Hyper-V off (uncheck box, making sure all sub-components are marked as off)
    4. Hit "Ok" - and your machine will reboot.
    5. When your computer starts up again, open "Turn Windows features on or off" and turn Hyper-V back on. Your machine will reboot again.

    Now you can test by running docker hello-world image.

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

    I run in to the same problem. I solved this by enabling hyper-v.

    1. Enable virtualization in BIOS
    2. Install hyper-v
    0 讨论(0)
  • 2020-12-04 10:19

    Open C drive in powershell Or Git bash and run below command

    .\Program Files\Docker\Docker\DockerCli.exe -SwitchDaemon
    
    0 讨论(0)
  • 2020-12-04 10:19

    For me this issue resolved by singing in Docker Desktop.

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

    I had the same issue lately. Problem was Security Software(Trendmicro) was blocking docker to create Hyperv network interface. You should also check firewall, AV software not blocking installation or configuration.

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

    For win10 I had the same issue:

    error during connect: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.39/images/load?quiet=0: open //./pipe/docker_engine: The system cannot find the file specified. 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.
    

    The docker service appeared to work. Restarting did not help. Running the binary from the installation directory as administrator helped.

    In my case:

    run as administrator -> C:\Program Files\Docker\Docker\Docker for Windows.exe
    
    0 讨论(0)
提交回复
热议问题