Docker Engine: configure a proxy for the daemon
Answer: This page describes how to configure a proxy for the Docker daemon.
Why the daemon needs a proxy
If your organization reaches the internet through a proxy, you may need to point the Docker daemon at that proxy.
The daemon uses that proxy to pull images from registries and to reach other nodes in a swarm.
Proxy settings in the daemon configuration file are ignored by Docker Desktop.
If you use Docker Desktop, configure proxies in the Desktop settings instead.
Exclusions and rootless mode
A NO_PROXY value lists, as comma-separated entries, hosts that should be excluded from proxying.
A domain name with a leading dot matches subdomains only.
Systemd configuration file locations differ when running Docker in rootless mode.
In addition, systemctl must be executed without sudo and with the user flag.
See also
Claims
- id: C1 claim: This page describes how to configure a proxy for the Docker daemon. source: S1 evidence: "This page describes how to configure a proxy for the Docker daemon."
- id: C2 claim: Proxy settings in the daemon configuration file are ignored by Docker Desktop. source: S1 evidence: "Proxy configurations specified in the daemon.json are ignored by Docker Desktop."
- id: C3 claim: If you use Docker Desktop, configure proxies in the Desktop settings instead. source: S1 evidence: "If you use Docker Desktop, you can configure proxies using the Docker Desktop settings"
- id: C4 claim: A domain name with a leading dot matches subdomains only. source: S2 evidence: "A domain name with a leading \".\" matches subdomains only."
Sources
- [S1] Configure the Docker daemon to use a proxy server. Docker, Inc.. https://docs.docker.com/engine/daemon/proxy/ . License: Apache License 2.0. Accessed 2026-11-24.
- [S2] Configure the Docker daemon to use a proxy server (source). Docker, Inc.. https://raw.githubusercontent.com/docker/docs/main/content/manuals/engine/daemon/proxy.md . License: Apache License 2.0. Accessed 2026-11-24.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., Configure the Docker daemon to use a proxy server; Docker, Inc., Configure the Docker daemon to use a proxy server (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., Configure the Docker daemon to use a proxy server; Docker, Inc., Configure the Docker daemon to use a proxy server (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc.
Cite this
iinventedlight. 2026. "Docker Engine: configure a proxy for the daemon." iinventedlight Library, iil:note:h7rxgpa1, version of 2026-11-24. https://iinventedlight.com/library/notes/docker-proxy/. License: CC-BY-4.0.
@misc{iil_note_h7rxgpa1,
author = {{iinventedlight}},
title = {{Docker Engine: configure a proxy for the daemon}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-24},
url = {https://iinventedlight.com/library/notes/docker-proxy/},
note = {Permanent ID iil:note:h7rxgpa1. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- docker-proxy.schema.json (schema; CC-BY-4.0)
- docker-proxy.table.json (table; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/docker-proxy.md.