Skip to main content

Windows上运行docker报错

windows10下安装docker报错:error during connect

详细报错信息如下:

C:\Users\xiaokang>docker run -d -p 80:80 docker/getting-started
docker: error during connect: This error may indicate that the docker daemon is not running.: 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'.

修改方法:

cd "C:\Program Files\Docker\Docker"
./DockerCli.exe -SwitchDaemon

默认使用的是Linux Containers,使用这个命令后改为Windows Containers就好了。