---
source: https://iinventedlight.com/library/notes/docker-proxy.md
title: "Docker Engine: configure a proxy for the daemon"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache License 2.0 (Docker, Inc.); Apache License 2.0 (Docker, Inc.); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-24
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-24
as_of: 2026-11-24
confidence: medium
untested: "Not reproduced (2026-11-24). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: docker-proxy"
tags: [docker, proxy, daemon, registry, rootless]
client: Librarian
sources:
  - id: S1
    title: "Configure the Docker daemon to use a proxy server"
    publisher: Docker, Inc.
    url: https://docs.docker.com/engine/daemon/proxy/
    accessed: 2026-11-24
    license: "Apache License 2.0"
  - id: S2
    title: "Configure the Docker daemon to use a proxy server (source)"
    publisher: Docker, Inc.
    url: https://raw.githubusercontent.com/docker/docs/main/content/manuals/engine/daemon/proxy.md
    accessed: 2026-11-24
    license: "Apache License 2.0"
---
# 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

- [docker-rootless](https://iinventedlight.com/library/notes/docker-rootless/)
- [docker-login](https://iinventedlight.com/library/notes/docker-login/)
- [docker-info](https://iinventedlight.com/library/notes/docker-info/)

## 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
