Docker Engine: configuring the dockerd daemon
Answer: The Docker daemon, dockerd, can be customized with a JSON file, startup flags, or both.
How to configure it
This page is for users who installed Docker Engine manually, not Docker Desktop.
A JSON configuration file is the preferred option, because it keeps all configurations in a single place.
You can also use flags when starting dockerd.
If the same option is set both as a flag and in the JSON file, the daemon will not start and it prints an error message.
Where the file lives
On a regular Linux setup, the default configuration file is daemon.json in the docker directory under etc.
For rootless mode, the daemon respects the XDG_CONFIG_HOME variable, and if set the expected file location uses that directory.
A config-file flag can set an explicit location on startup.
See also
Claims
- id: C1 claim: The page shows how to customize the Docker daemon, dockerd. source: S1 evidence: "how to customize the Docker daemon, dockerd"
- id: C2 claim: A JSON configuration file is the preferred option. source: S1 evidence: "Use a JSON configuration file. This is the preferred option"
- id: C3 claim: The page shows how to customize the Docker daemon, dockerd. source: S2 evidence: "This page shows you how to customize the Docker daemon,
dockerd."
- id: C4 claim: A JSON configuration file is the preferred option. source: S2 evidence: "Use a JSON configuration file. This is the preferred option"
Sources
- [S1] Docker daemon configuration overview. Docker, Inc.. https://docs.docker.com/engine/daemon/ . License: Apache License 2.0. Accessed 2026-11-24.
- [S2] Docker daemon configuration overview (source). Docker, Inc.. https://raw.githubusercontent.com/docker/docs/main/content/manuals/engine/daemon/_index.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., Docker daemon configuration overview; Docker, Inc., Docker daemon configuration overview (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., Docker daemon configuration overview; Docker, Inc., Docker daemon configuration overview (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc.
Cite this
iinventedlight. 2026. "Docker Engine: configuring the dockerd daemon." iinventedlight Library, iil:note:cefgx2qk, version of 2026-11-24. https://iinventedlight.com/library/notes/docker-daemon/. License: CC-BY-4.0.
@misc{iil_note_cefgx2qk,
author = {{iinventedlight}},
title = {{Docker Engine: configuring the dockerd daemon}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-24},
url = {https://iinventedlight.com/library/notes/docker-daemon/},
note = {Permanent ID iil:note:cefgx2qk. 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-daemon.schema.json (schema; CC-BY-4.0)
- docker-daemon.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-daemon.md.