Docker commands fails (in Windows)

前端 未结 25 2429
-上瘾入骨i
-上瘾入骨i 2020-12-23 02:26

I am trying to use Docker on a windows machine and is hit with every possible issue it seems. My latest one is this: My machine is running but I can\'t seem to interact with

相关标签:
25条回答
  • 2020-12-23 03:03

    I got the solution from this issue. It not just like Nikesh's answer said SwitchDaemon could fix it directly. I think you should run this command twice to switch your daemon to your previous daemon.

    cd "C:\Program Files\Docker\Docker"
    ./DockerCli.exe -SwitchDaemon
    # then check the docker OS/Arch
    docker version
    # You may see the different OS/Arch 
    ./DockerCli.exe -SwitchDaemon
    # then you got your images and containers back 
    

    This command is just switch your daemon from your defualt daemon to another daemon(depends on what you set). When you switch to another daemon, the images and containers on the former daemon will disappear(but not deleted).

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