-
右鍵這個(gè)小圖標(biāo)覆享,先signin佳遂,注意這里是ID 不是郵箱
image.png -
可能starting 時(shí)候就報(bào)錯(cuò)說
“Containers feature is not enabled”
或者
image.png
https://github.com/docker/for-win/issues/1631
https://github.com/docker/for-win/issues/1982
總結(jié)一下,
首先確認(rèn)Hyper-V啟動(dòng)
image.png
第二應(yīng)該確保:
image.png
如果你的顯示禁用撒顿, Enabled Virtualization (Hyper-V, etc) in your BIOS丑罪, 你得開機(jī)進(jìn)入BIOS里把Virtualization的選項(xiàng)變成Enabled(不同機(jī)子的Virtualization可能在不同的選項(xiàng)下,去看一下advanced之類的)
-
在bash 里打docker ps
就開始報(bào)錯(cuò)
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