In the CENTOS6 version if you configure Docker's Https_proxy agent, you only need to add the configuration in the/etc/sysconfig/docker configuration file, but in Centos7 you will find that it is not possible to use such a configuration for Https_ Proxy configuration, because CentOS uses SYSTEMD to manage the process environment, we need the following configuration to apply the Https_proxy configuration
Create Directory MKDIR/ETC/SYSTEMD/SYSTEM/DOCKER.SERVICE.D
Create File touch/etc/systemd/system/docker.service.d/http-proxy.conf
Configure the http-proxy.conf file to add the following [Service]
Environment= "Http_proxy=http://proxy.ip.com:80"
Daemon re-reload and restart Dockersystemctl daemon-reload
Systemctl Restart Docker
Check if the variable is loaded SYSTEMCTL show Docker--property Environment
Centos7 Docker uses Https_proxy proxy configuration