Docker Certified Associate (DCA) — Question 19

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?
Create a Dockerfile for each environment, specifying ports and Docker secrets for certificates.

Answer options

Correct answer: B

Explanation

The correct answer is 'No' because creating a separate Dockerfile for each environment does not provide a dynamic way to provision configuration at runtime. Instead, using environment variables or configuration management tools would be a more effective approach for managing different settings across environments.