forked from docker/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for ALL_PROXY as default build-arg was added recently in buildkit and the classic builder. This patch adds the `ALL_PROXY` environment variable to the list of configurable proxy variables, and updates the documentation. Signed-off-by: Sebastiaan van Stijn <[email protected]>
- Loading branch information
Showing
6 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,12 +32,14 @@ func TestProxyConfig(t *testing.T) { | |
httpsProxy = "https://user:[email protected]:3129" | ||
ftpProxy = "http://ftpproxy.mycorp.example.com:21" | ||
noProxy = "*.intra.mycorp.example.com" | ||
allProxy = "socks://example.com:1234" | ||
|
||
defaultProxyConfig = ProxyConfig{ | ||
HTTPProxy: httpProxy, | ||
HTTPSProxy: httpsProxy, | ||
FTPProxy: ftpProxy, | ||
NoProxy: noProxy, | ||
AllProxy: allProxy, | ||
} | ||
) | ||
|
||
|
@@ -57,6 +59,8 @@ func TestProxyConfig(t *testing.T) { | |
"ftp_proxy": &ftpProxy, | ||
"NO_PROXY": &noProxy, | ||
"no_proxy": &noProxy, | ||
"ALL_PROXY": &allProxy, | ||
"all_proxy": &allProxy, | ||
} | ||
assert.Check(t, is.DeepEqual(expected, proxyConfig)) | ||
} | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -214,6 +214,7 @@ be set for each environment: | |
| `httpsProxy` | Default value of `HTTPS_PROXY` and `https_proxy` for containers, and as `--build-arg` on `docker build` | | ||
| `ftpProxy` | Default value of `FTP_PROXY` and `ftp_proxy` for containers, and as `--build-arg` on `docker build` | | ||
| `noProxy` | Default value of `NO_PROXY` and `no_proxy` for containers, and as `--build-arg` on `docker build` | | ||
| `allProxy` | Default value of `ALL_PROXY` and `all_proxy` for containers, and as `--build-arg` on `docker build` | | ||
|
||
These settings are used to configure proxy settings for containers only, and not | ||
used as proxy settings for the `docker` CLI or the `dockerd` daemon. Refer to the | ||
|
@@ -295,7 +296,8 @@ various fields: | |
"httpProxy": "http://user:[email protected]:3128", | ||
"httpsProxy": "https://my-proxy.example.com:3129", | ||
"noProxy": "intra.mycorp.example.com", | ||
"ftpProxy": "http://user:[email protected]:3128" | ||
"ftpProxy": "http://user:[email protected]:3128", | ||
"allProxy": "socks://example.com:1234" | ||
}, | ||
"https://manager1.mycorp.example.com:2377": { | ||
"httpProxy": "http://user:[email protected]:3128", | ||
|
This file contains 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