Skip to content

Latest commit

 

History

History
20 lines (20 loc) · 414 Bytes

Docker.md

File metadata and controls

20 lines (20 loc) · 414 Bytes

Set proxy with systemd

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