Skip to content

Commit 37eb9f7

Browse files
authored
desktop: proxy config not supported through daemon.json/config.json (#20905)
## Description Docker Desktop does not respect proxy configuration through config.json (cli) or daemon.json (dameon). Proxy config for DD is only supported through the settings menu or via settings management. ## Related issues or tickets docker/pinata#30436 Signed-off-by: David Karlsson <[email protected]>
1 parent 18b8d8a commit 37eb9f7

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

content/manuals/desktop/settings.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,12 @@ The HTTPS proxy settings used for scanning images are set using the `HTTPS_PROXY
260260
> If you are using a PAC file hosted on a web server, make sure to add the MIME type `application/x-ns-proxy-autoconfig` for the `.pac` file extension on the server or website. Without this configuration, the PAC file may not be parsed correctly.
261261
262262
> [!IMPORTANT]
263+
> You cannot configure the proxy settings using the Docker daemon configuration
264+
> file (`daemon.json`), and we recommend you do not configure the proxy
265+
> settings via the Docker CLI configuration file (`config.json`).
263266
>
264-
> You do not need to separately configure proxy settings for the Docker CLI or Docker daemon.
267+
> To manage proxy configurations for Docker Desktop, configure the settings in
268+
> the Docker Desktop app or use [Settings Management](/manuals/security/for-admins/hardened-desktop/settings-management/_index.md).
265269
266270
#### Proxy authentication
267271

content/manuals/engine/daemon/proxy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ This page describes how to configure a proxy for the Docker daemon. For
2323
instructions on configuring proxy settings for the Docker CLI, see [Configure
2424
Docker CLI to use a proxy server](/manuals/engine/cli/proxy.md).
2525

26+
> [!IMPORTANT]
27+
> Proxy configurations specified in the `daemon.json` are ignored by Docker
28+
> Desktop. If you use Docker Desktop, you can configure proxies using the
29+
> [Docker Desktop settings](/manuals/desktop/settings.md#proxies).
30+
2631
There are two ways you can configure these settings:
2732

2833
- [Configuring the daemon](#daemon-configuration) through a configuration file or CLI flags

0 commit comments

Comments
 (0)