← All notes

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

Sources

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

Permanent ID: iil:note:cefgx2qk

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

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-daemon.md.