gpt4 book ai didi

docker - 如何使用 Chocolatey 安装 Docker?

转载 作者:行者123 更新时间:2023-12-02 17:52:52 26 4
gpt4 key购买 nike

我跑了

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。

windows 10 version

引用: https://chocolatey.org/search?q=docker

我还直接从 Docker.com 下载了一个运行安装程序。

https://hub.docker.com/editions/community/docker-ce-desktop-windows

它只说现有安装是最新的并退出。系统托盘中没有鲸鱼图标。

docker desktop

从任务管理器 > 性能 > CPU 显示虚拟化已启用:

task manager virtualization

最佳答案

使用 Chocolatey 在 Windows 上安装 Docker 肯定有不同的方法,而不是在这里重复所有内容,我建议您查看 Stefan Scherer 的这篇博文:

https://stefanscherer.github.io/how-to-install-docker-the-chocolatey-way/

他为 Docker 工作,他也是 Chocolatey 的长期用户,希望这篇博文能帮助您开始工作。

总而言之,他的 TL/DR:

The best experience with Docker on a Windows 10 machine is using the Docker Desktop product. Try to grab an up-to-date Windows 10 Pro machine to be all set for it and then run


choco install docker-desktop

关于docker - 如何使用 Chocolatey 安装 Docker?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57335050/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com