我跑了
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已启用:
答案 0 :(得分:0)
肯定有不同的方法可以使用Chocolatey在Windows上安装Docker,而不是在此重复所有内容,我建议您看一下Stefan Scherer的这篇博客文章:
https://stefanscherer.github.io/how-to-install-docker-the-chocolatey-way/
他在Docker工作,也是Chocolatey的长期用户,希望这篇博客文章能帮助您发展。
总结一下,他的TL / DR:
在Windows 10计算机上使用Docker的最佳体验是使用Docker Desktop产品。尝试抢购一台最新的Windows 10 Pro计算机,然后运行
choco install docker-desktop
答案 1 :(得分:0)
您必须从启动菜单中启动程序(至少一次)以激活和配置守护程序。