问题,体质,docker 跳出新版本要更新以后,就不能用了,什么鬼
C:\Users\dynamic>docker ps -a
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.39/containers/json?all=1: 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\dynamic>docker-machine -ls
Incorrect Usage.
解决方法:
设置个环境变量保证 docker machine 工作正常
@FOR /f “tokens=*” %i IN (‘docker-machine env default’) DO @%i
然后:
docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
docker-machine 工作正常,好了
docker ps 可以正常使用啦。