← All notes

Docker Swarm configs: store non-sensitive files outside a service image

Answer: Docker configs store non-sensitive files outside a service image or its running containers.

How configs differ from secrets

Configs keep images generic without bind-mounting files or relying only on environment variables.

Configs operate in a similar way to secrets.

They are not encrypted at rest, and they mount directly into the container's filesystem without a RAM disk.

Values may be generic strings or binary content up to 500 kb.

Limits and rotation

Docker configs are only available to swarm services, not to standalone containers.

Configs are supported on both Linux and Windows services.

You cannot remove a config that a running service is using.

The config is stored in the Raft log, which is encrypted.

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., Store configuration data using Docker Configs; Docker, Inc., Store configuration data using Docker Configs (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., Store configuration data using Docker Configs; Docker, Inc., Store configuration data using Docker Configs (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc.

Cite this

Permanent ID: iil:note:f8abmcyb

iinventedlight. 2026. "Docker Swarm configs: store non-sensitive files outside a service image." iinventedlight Library, iil:note:f8abmcyb, version of 2026-11-26. https://iinventedlight.com/library/notes/docker-swarm-configs/. License: CC-BY-4.0.

@misc{iil_note_f8abmcyb,
  author = {{iinventedlight}},
  title = {{Docker Swarm configs: store non-sensitive files outside a service image}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-26},
  url = {https://iinventedlight.com/library/notes/docker-swarm-configs/},
  note = {Permanent ID iil:note:f8abmcyb. 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-swarm-configs.md.