Skip to content

Instantly share code, notes, and snippets.

@Daniyal-Javani
Created October 2, 2021 06:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Daniyal-Javani/b0cd5b15749635f18004fad806b43212 to your computer and use it in GitHub Desktop.
Save Daniyal-Javani/b0cd5b15749635f18004fad806b43212 to your computer and use it in GitHub Desktop.
Docker proxy
home/daniyal/.docker/config.json
{
"proxies": {
"default": {
"httpProxy": "http://172.17.0.1:8118",
"httpsProxy": "http://172.17.0.1:8118"
}
}
}
/etc/systemd/system/docker.service.d/proxy.conf
[Service]
Environment="HTTPS_PROXY=127.0.0.1:8118"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment