Skip to content

Instantly share code, notes, and snippets.

@meysampg
Created April 10, 2020 10:47
Show Gist options
  • Save meysampg/c3dfbe3dc3fa449ccd868058c5445351 to your computer and use it in GitHub Desktop.
Save meysampg/c3dfbe3dc3fa449ccd868058c5445351 to your computer and use it in GitHub Desktop.
Pass Docker Daemon Traffics behind a proxy
mkdir /etc/systemd/system/docker.service.d
vim /etc/systemd/system/docker.service.d/http-proxy.conf
[Service]
Environment="HTTP_PROXY=http://localhost:8123/"
Environment="HTTPS_PROXY=http://localhost:8123/"
systemctl daemon-reload
systemctl restart docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment