diff --git a/config/daemon/systemd.md b/config/daemon/systemd.md index 3748984f3e..e7a42095f8 100644 --- a/config/daemon/systemd.md +++ b/config/daemon/systemd.md @@ -111,6 +111,13 @@ 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" ``` + + If you have to use special characters in the proxy value they must be both URL encoded and escape the % signs with double %%. + + ``` + [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 +194,13 @@ 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" ``` + + If you have to use special characters in the proxy value they must be both URL encoded and escape the % signs with double %%. + + ``` + [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.