Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 743 Bytes

proxy-docker.md

File metadata and controls

26 lines (21 loc) · 743 Bytes

Proxy für Docker setzen

Walktrough

# as root
systemctl list-units -t service | grep docker
systemctl cat snap.docker.dockerd.service
systemctl edit snap.docker.dockerd.service
# in edit folgendes reinschreiben
[Service]
Environment="HTTP_PROXY=http://user01:[email protected]:8080/"
Environment="HTTPS_PROXY=https://user01:[email protected]:8080/"
Environment="NO_PROXY= hostname.example.com,172.10.10.10"

systemctl show snap.docker.dockerd.service --property Environment
systemctl restart snap.docker.dockerd.service
systemctl cat snap.docker.dockerd.service
cd /etc/systemd/system/snap.docker.dockerd.service.d/
ls -la
cat override.conf

Ref