DockerToolbox for win7服务不可用错误

时间:2016-07-27 21:29:02

标签: docker boot2docker docker-toolbox

在CMD

上运行docker ps时最初出错
An error occurred trying to connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v
1.23/containers/json: open //./pipe/docker_engine: The system cannot find the fi
le specified.

按照here

步骤进行操作
C:\Users\kkk>docker-machine start default
Starting "default"...
Machine "default" is already running.

C:\Users\kkk>docker-machine env default
SET DOCKER_TLS_VERIFY=1
SET DOCKER_HOST=tcp://192.168.99.100:2376
SET DOCKER_CERT_PATH=C:\Users\kkk\.docker\machine\machines\default
SET DOCKER_MACHINE_NAME=default
REM Run this command to configure your shell:
REM     @FOR /f "tokens=*" %i IN ('docker-machine env default') DO @%i

C:\Users\kkk>docker-machine env --shell cmd
SET DOCKER_TLS_VERIFY=1
SET DOCKER_HOST=tcp://192.168.99.100:2376
SET DOCKER_CERT_PATH=C:\Users\kkk\.docker\machine\machines\default
SET DOCKER_MACHINE_NAME=default
REM Run this command to configure your shell:
REM     @FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd') DO @%i

C:\Users\kkk>@FOR /f "tokens=*" %i IN ('docker-machine.exe env --shell cmd')
 DO @%i

现在当我再次尝试docker ps时,我收到以下错误

An error occurred trying to connect: Get https://192.168.99.100:2376/v1.23/conta
iners/json: Service Unavailable

注意:该机器位于公司代理

之后

1 个答案:

答案 0 :(得分:0)

如果您位于公司代理人的身后,请检查您的NO_PROXY env变量是否正确设置为避免使用192.168.99.100