Created
March 24, 2023 23:33
-
-
Save bonicim/6d440c182e2b732cfa0a30f7d37c4cb6 to your computer and use it in GitHub Desktop.
docker proxy scripts
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
| alias docknproxy="jq 'del(.proxies)' $HOME/.docker/config.json | sponge $HOME/.docker/config.json" | |
| alias dockproxy="jq --argfile proxy $HOME/.docker/proxies.json '.proxies=\$proxy' $HOME/.docker/config.json | sponge $HOME/.docker/config.json" | |
| { | |
| "default": { | |
| "httpsProxy": "http://proxy01.pnl.gov:3128", | |
| "httpProxy": "http://proxy01.pnl.gov:3128", | |
| "noProxy": "pnl.gov,pnnl.gov,localhost,api,127.0.0.1,172.0.0.0/8,10.17.0.0/16,10.15.0.0/16,130.20.0.0/16" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment