我试图在我的Windows 7系统上设置docker env, 每当我运行docker命令时,我都会收到EOF错误。 有什么建议可以解决这个问题吗?
$ docker ps
An error occurred trying to connect: Get
https://22.222.201.93:2376/v1.21/containers/json: EOF
jayanth@mycomputer MINGW64 ~
$
jayanth@mycomputer MINGW64 ~
$ docker version
Client:
Version: 1.9.1
API version: 1.21
Go version: go1.4.3
Git commit: a34a1d5
Built: Fri Nov 20 17:56:04 UTC 2015
OS/Arch: windows/amd64
An error occurred trying to connect: Get https://22.222.201.93:2376/v1.21/version: EOF
答案 0 :(得分:1)
再次尝试安装,这次完全避开cygwin或任何bash。
在常规CMD中,将docker-machine-Windows-x86_64.exe
复制到docker-machine.exe
所需的任何位置。
键入(在您复制docker-machine.exe
的同一文件夹中):
docker-machine ls
docker-machine rm <the machine name from ls>
docker-machine create
docker-machine start
docker-machine ssh
在该ssh会话中,键入docker info
和docker version
以检查是否按预期工作。
如果您有代理,则需要创建具有指定代理的计算机:
docker-machine create -d virtualbox \
--engine-env HTTP_PROXY=http://<username>:<password>@<proxy.server.com>:<port> \
--engine-env http_proxy=http://<username>:<password>@<proxy.server.com>:<port> \
--engine-env HTTPS_PROXY=http://<username>:<password>@<proxy.server.com>:<port> \
--engine-env https_proxy=http://<username>:<password>@<proxy.server.com>:<port> \
--engine-env NO_PROXY=<.server.com>,.sock,localhost,127.0.0.1,::1 \
--engine-env no_proxy=<.server.com>,.sock,localhost,127.0.0.1,::1 \
<container_name>