DCA · Question #123
An application image runs in multiple environments, with each environment using different certificates and ports. Is this a way to provision configuration to containers at runtime? Solution: Provision
The correct answer is A. Yes. Docker config objects are a suitable method for provisioning environment-specific configuration data like certificates and port settings to services at runtime.
Question
An application image runs in multiple environments, with each environment using different certificates and ports. Is this a way to provision configuration to containers at runtime? Solution: Provision a Docker config object for each environment.
Options
- AYes
- BNo
How the community answered
(34 responses)- A94% (32)
- B6% (2)
Why each option
Docker config objects are a suitable method for provisioning environment-specific configuration data like certificates and port settings to services at runtime.
Docker config objects allow sensitive configuration data, such as certificates or other environment-specific settings, to be securely and efficiently provisioned to Docker services at runtime, addressing the need for different configurations per environment.
Docker configs are explicitly designed for this purpose, providing a robust way to manage varying configurations across environments without baking them into the image.
Concept tested: Docker config objects for runtime configuration
Source: https://docs.docker.com/engine/swarm/configs/
Topics
Community Discussion
No community discussion yet for this question.