-
右鍵這個小圖標,先signin,注意這里是ID 不是郵箱
image.png -
可能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之類的)
-
在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