
~ env | grep proxy http_proxy=http://127.0.0.1:8118 https_proxy=https://127.0.0.1:8118 ~ cat /etc/default/docker # Docker Upstart and SysVinit configuration file # # THIS FILE DOES NOT APPLY TO SYSTEMD # # Please see the documentation for "systemd drop-ins": # https://docs.docker.com/engine/admin/systemd/ # # If you need Docker to use an HTTP proxy, it can also be specified here. export http_proxy="http://127.0.0.1:8118/ 还是 Error response from daemon: Get https://registry.containers.ovh.net/v2/: net/http: TLS handshake timeout
1 kslr OP The Docker daemon uses the HTTP_PROXY, HTTPS_PROXY, and NO_PROXY environmental variables in its start-up environment to configure HTTP or HTTPS proxy behavior. You cannot configure these environment variables using the daemon.json file. https://docs.docker.com/config/daemon/systemd/#httphttps-proxy 真是要爆炸了 |
2 zhoulouzi 2018-02-27 23:37:53 +08:00 daemon.json { "insecure-registries": ["X"] } |
4 hljjhb 2018-02-27 23:56:34 +08:00 |