【发布时间】:2021-10-01 11:21:12
【问题描述】:
我已经在 windows 10 操作系统中安装了 docker,现在我只是运行一些命令但出现错误。我是 docker 新手。
C:\WINDOWS\system32>docker run dockerinaction/hello_world
docker: error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect.: Post "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/create": open //./pipe/docker_engine: The system cannot find the file specified.
See 'docker run --help'.
版本也出现错误:
C:\WINDOWS\system32>docker version
error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect.: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/version": open //./pipe/docker_engine: The system cannot find the file specified.
Client:
Cloud integration: 1.0.17
Version: 20.10.7
API version: 1.41
Go version: go1.16.4
Git commit: f0df350
Built: Wed Jun 2 12:00:56 2021
OS/Arch: windows/amd64
Context: default
Experimental: true
查看帖子Docker cannot start on Windows后,我尝试运行另一个命令docker-machine
C:\WINDOWS\system32>docker-machine env --shell cmd default
'docker-machine' is not recognized as an internal or external command,
operable program or batch file.
我在查看帖子后尝试了另一个命令 - Docker: error during connect
C:\WINDOWS\system32>docker-machine env box
'docker-machine' is not recognized as an internal or external command,
operable program or batch file.
如何修复这些错误?
【问题讨论】:
标签: docker