mirror of https://github.com/docker/docs.git
commit
bc29f9c315
|
@ -111,6 +111,16 @@ you need to add this configuration in the Docker systemd service file.
|
|||
Environment="HTTP_PROXY=http://proxy.example.com:80"
|
||||
Environment="HTTPS_PROXY=https://proxy.example.com:443"
|
||||
```
|
||||
|
||||
> **Note**
|
||||
>
|
||||
> Special characters in the proxy value, such as `#?!()[]{}`, must be double
|
||||
> escaped using `%%`. For example:
|
||||
>
|
||||
> ```
|
||||
> [Service]
|
||||
> Environment="HTTP_PROXY=http://domain%%5Cuser:complex%%23pass@proxy.example.com:8080/"
|
||||
> ```
|
||||
|
||||
3. If you have internal Docker registries that you need to contact without
|
||||
proxying you can specify them via the `NO_PROXY` environment variable.
|
||||
|
@ -187,6 +197,16 @@ you need to add this configuration in the Docker systemd service file.
|
|||
Environment="HTTP_PROXY=http://proxy.example.com:80"
|
||||
Environment="HTTPS_PROXY=https://proxy.example.com:443"
|
||||
```
|
||||
|
||||
> **Note**
|
||||
>
|
||||
> Special characters in the proxy value, such as `#?!()[]{}`, must be double
|
||||
> escaped using `%%`. For example:
|
||||
>
|
||||
> ```
|
||||
> [Service]
|
||||
> Environment="HTTP_PROXY=http://domain%%5Cuser:complex%%23pass@proxy.example.com:8080/"
|
||||
> ```
|
||||
|
||||
3. If you have internal Docker registries that you need to contact without
|
||||
proxying, you can specify them via the `NO_PROXY` environment variable.
|
||||
|
|
Loading…
Reference in New Issue