Skip to content

Instantly share code, notes, and snippets.

@alirezazadeh77
Last active January 13, 2023 14:51
Show Gist options
  • Save alirezazadeh77/a714d0ddcc87c507237e8cc4177dbca2 to your computer and use it in GitHub Desktop.
Save alirezazadeh77/a714d0ddcc87c507237e8cc4177dbca2 to your computer and use it in GitHub Desktop.
setup proxy on docker pull
# 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