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
- id: C1 claim: Services can share a config, and you can add or remove one at any time. source: S1 evidence: "services can share a config"
- id: C2 claim: Config values may be strings or binary content up to 500 kb. source: S1 evidence: "Config values can be generic strings or binary content (up to 500 kb in size)."
- id: C3 claim: Configs work only with swarm services, not standalone containers. source: S1 evidence: "Docker configs are only available to swarm services, not to standalone containers."
- id: C4 claim: You cannot remove a config a running service is using. source: S2 evidence: "You cannot remove a config that a running service is using."
Sources
- [S1] Store configuration data using Docker Configs. Docker, Inc.. https://docs.docker.com/engine/swarm/configs/ . License: Apache License 2.0. Accessed 2026-11-26.
- [S2] Store configuration data using Docker Configs (source). Docker, Inc.. https://raw.githubusercontent.com/docker/docs/main/content/manuals/engine/swarm/configs.md . License: Apache License 2.0. Accessed 2026-11-26.
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
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.},
}
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-swarm-configs.schema.json (schema; CC-BY-4.0)
- docker-swarm-configs.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-swarm-configs.md.