Skip to content

Instantly share code, notes, and snippets.

@vazmin
Last active April 28, 2021 15:06
Show Gist options
  • Save vazmin/33c7eaefad2c1a3231f70dfd982d6bdb to your computer and use it in GitHub Desktop.
Save vazmin/33c7eaefad2c1a3231f70dfd982d6bdb to your computer and use it in GitHub Desktop.
docker proxy
sudo mkdir -p /etc/systemd/system/docker.service.d
sudo vi /etc/systemd/system/docker.service.d/proxy.conf

[Service]
Environment="HTTP_PROXY=http://myproxy.hostname:8080"
Environment="HTTPS_PROXY=https://myproxy.hostname:8080/"
Environment="NO_PROXY="localhost,127.0.0.1,::1"
sudo systemctl daemon-reload
sudo systemctl restart docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment