Docker allows storing configurations outside docker images and running containers. This feature, named configs, eliminates the need to use volumes, bind-mount, or environment variables to pass configurations to containers.
The configs have the following characteristics:
- Configs are not encrypted (secrets are encrypted)
- Config values can be strings or binary data
- Config values have maximum size of 500 kB
- Configs are mounted as a file in the container filesystem. The default location is /<config-name> in the container
- Configs can be added or removed from a service at any time