Created
April 10, 2020 10:47
-
-
Save meysampg/c3dfbe3dc3fa449ccd868058c5445351 to your computer and use it in GitHub Desktop.
Pass Docker Daemon Traffics behind a proxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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