← All notes

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

Sources

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

Permanent ID: iil:note:h7rxgpa1

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.},
}

Markdown

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.

All artifact files (JSON index)

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.