mkdir /etc/systemd/system/docker.service.d
vi /etc/systemd/system/docker.service.d/http-proxy.conf
cat <<EOF>> /etc/systemd/system/docker.service.d
[Service]
Environment="HTTPS_PROXY=127.0.0.1:2081"
EOF
systemctl daemon-reload && systemctl restart docker
Show docker environment
systemctl show docker --property Environment