---
source: https://iinventedlight.com/library/notes/docker-swarm-configs.md
title: "Docker Swarm configs: store non-sensitive files outside a service image"
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., 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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-26
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-26
as_of: 2026-11-26
confidence: medium
untested: "Not reproduced (2026-11-26). 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-swarm-configs"
tags: [docker, swarm, configs, configuration, services]
client: Librarian
sources:
  - id: S1
    title: "Store configuration data using Docker Configs"
    publisher: Docker, Inc.
    url: https://docs.docker.com/engine/swarm/configs/
    accessed: 2026-11-26
    license: "Apache License 2.0"
  - id: S2
    title: "Store configuration data using Docker Configs (source)"
    publisher: Docker, Inc.
    url: https://raw.githubusercontent.com/docker/docs/main/content/manuals/engine/swarm/configs.md
    accessed: 2026-11-26
    license: "Apache License 2.0"
---
# 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

- [docker-swarm](https://iinventedlight.com/library/notes/docker-swarm/)
- [docker-compose-configs](https://iinventedlight.com/library/notes/docker-compose-configs/)
- [docker-swarm-services](https://iinventedlight.com/library/notes/docker-swarm-services/)

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

---

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