docker 超时
在全世界的Docker研讨会上看到的最可怕的错误之一是:
Network timed out while trying to connect to https://index.docker.io/v1/repositories/library/couchbase/images. You may want to check your internet connection or if you are behind a proxy.
重新启动泊坞窗机通常称为来解决该问题。 假设您的计算机名称是couchbase-javaee
。 机器可以重新启动为:
docker-machine restart couchbase-javaee
Restarted machines may have new IP addresses. You may need to re-run the `docker-machine env` command.
设置Docker环境可能会起作用:
eval $(docker-machine env couchbase-javaee)
但是在某些情况下会给出错误:
Error running connection boilerplate: Error checking and/or regenerating the certs: There was an error validating certificates for host "192.168.99.106:2376": dial tcp 192.168.99.106:2376: i/o timeout
You can attempt to regenerate them using 'docker-machine regenerate-certs name'.
Be advised that this will trigger a Docker daemon restart which will stop running containers.
因此,您需要重新生成证书。 成功执行将产生以下输出:
docker-machine regenerate-certs couchbase-javaee
Regenerate TLS machine certs? Warning: this is irreversible. (y/n): y
Regenerating TLS certificates
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
有时甚至这个命令也会发疯并给出输出:
docker-machine regenerate-certs couchbase-javaee
Regenerate TLS machine certs? Warning: this is irreversible. (y/n): y
Regenerating TLS certificates
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
WARNING >>>
This machine has been allocated an IP address, but Docker Machine could not
reach it successfully.
SSH for the machine should still work, but connecting to exposed ports, such as
the Docker daemon port (usually <ip>:2376), may not work properly.
You may need to add the route manually, or use another related workaround.
This could be due to a VPN, proxy, or host file configuration issue.
You also might want to clear any VirtualBox host only interfaces you are not using.
无论哪种方式,设置Docker环境:
eval $(docker-machine env couchbase-javaee)
正确设置环境。
翻译自: https://www.javacodegeeks.com/2015/12/network-timed-docker-error.html
docker 超时
所有评论(0)