Last active
January 13, 2023 14:51
-
-
Save alirezazadeh77/a714d0ddcc87c507237e8cc4177dbca2 to your computer and use it in GitHub Desktop.
setup proxy on docker pull
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
# add this file to /etc/systemd/system/docker.service.d (you need run mkdir /etc/systemd/system/docker.service.d) and rename file to "http_proxy.conf" | |
[Service] | |
Environment="HTTP_PROXY=" | |
Environment="HTTPS_PROXY=" | |
Environment="NO_PROXY=localhost,127.0.0.0/8,registry.example.com" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment