我通过chocolatey install docker-toolbox
安装了Dock。安装后,docker info
不起作用。
C:\Users\Chloe>docker info
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.37/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.
C:\Users\Chloe>docker --version
Docker version 18.03.0-ce, build 0520e24302
https://docs.docker.com/get-started/#test-docker-version
我确实是从Administrator shell运行的。
Windows 8.1。
最佳答案
必须运行“开始”>“程序”>“Docker”>“Docker Quickstart Terminal”,其中运行了许多命令。然后在我原来的Console2 shell中,运行refreshenv
。然后docker info
将起作用。 (我已经安装了VirtualBox(choco install virtualbox
)。)
关于windows - 安装后, `docker info`无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50069188/