【发布时间】:2019-12-11 14:06:03
【问题描述】:
我跑了
choco install docker-cli
choco install docker-machine
choco install docker-compose
choco install docker-desktop
我尝试根据文档测试安装,但出现错误。
https://docs.docker.com/get-started/#test-docker-version
# docker --version
Docker version 19.03.1, build 74b1e89
# docker version
Client: Docker Engine - Community
Version: 19.03.1
API version: 1.40
Go version: go1.12.5
Git commit: 74b1e89
Built: Thu Jul 25 21:17:08 2019
OS/Arch: windows/amd64
Experimental: false
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/version: 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.
# docker info
Client:
Debug Mode: false
Server:
ERROR: error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/info: 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.
errors pretty printing info
我查看了这个问题,但没有一个有用的答案:docker cannot start on windows
我使用的是 Windows 10。
参考:https://chocolatey.org/search?q=docker
我还直接从 Docker.com 下载了运行安装程序。
https://hub.docker.com/editions/community/docker-ce-desktop-windows
它只是说现有的安装是最新的并退出。系统托盘中没有鲸鱼图标。
从任务管理器 > 性能 > CPU 显示虚拟化已启用:
【问题讨论】:
-
如果您尝试以管理员身份运行 docker,您会收到相同的错误吗?
-
@iivannov 我以管理员身份运行 Docker。 ConEmu 使用
#作为一种方式来表明它正在管理员提升的命令 shell 中运行。我还以管理员身份从 Docker.com 运行下载。 -
经过几次重新启动和更新后,它现在可以工作了。没有提到重启,不是说有必要。
标签: docker chocolatey