[docker][win10]安裝的坑


    1. 右鍵這個小圖標,先signin,注意這里是ID 不是郵箱


       
      image.png
    2. 可能starting 時候就報錯說
      “Containers feature is not enabled”
      或者


       
      image.png

    https://github.com/docker/for-win/issues/1631
    https://github.com/docker/for-win/issues/1982

    總結一下,
    首先確認Hyper-V啟動

     
    image.png

    第二應該確保:
     
    image.png

    如果你的顯示禁用, Enabled Virtualization (Hyper-V, etc) in your BIOS, 你得開機進入BIOS里把Virtualization的選項變成Enabled(不同機子的Virtualization可能在不同的選項下,去看一下advanced之類的)

     

    1. 在bash 里打docker ps
      就開始報錯


       
      image.png

      error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.39/containers/json: 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.

    解決辦法:
    https://github.com/docker/for-win/issues/1825

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

    再試試, 就正常了
    docker ps


     
    image.png

    docker run hello-world


     
    image.png


    作者:荷包蛋醬
    鏈接:https://www.jianshu.com/p/09d53c822cf8
    來源:簡書
    簡書著作權歸作者所有,任何形式的轉載都請聯系作者獲得授權並注明出處。

     


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM