网站用的 docker swarm,我的工作流:更新的时候,直接 eval $(docker-machine env xx)
然后直接 docker stack deploy
部署,服务器在国外,但是这两天 docker-machine env
经常 time out
Error checking TLS connection: Error checking and/or regenerating the certs: There was an error validating certificates for host "xxx.xxx.xxx.xxx:2376": tls: DialWithDialer timed out
You can attempt to regenerate them using 'docker-machine regenerate-certs [name]'.
Be advised that this will trigger a Docker daemon restart which might stop running containers.
查了资料,没找到设置的方法,已经设置了 http_proxy
https_proxy
环境变量,大家又碰到这个问题么?不知道有什么解决方法。
1
everyx OP 难道只能手拼命令了 😂
set -gx DOCKER_TLS_VERIFY "1"; set -gx DOCKER_HOST "tcp://xxx.xxx.xxx.xx:2376"; set -gx DOCKER_CERT_PATH "/home/xxxxxx/.docker/machine/machines/xxxx"; set -gx DOCKER_MACHINE_NAME "xxxx"; |