Which of the following Dockerfile commands cannot be overridden at runtime? A. VOLUME B. USER C. ADD D. CMD
Correct Answer: C
Explanation:
Explanation:
When a developer builds an image from a Dockerfile or when she commits it, the developer can set a number of default parameters that take effect when the image starts up as a container. Four of the Dockerfile commands cannot be overridden at runtime: FROM, MAINTAINER, RUN, and ADD. Everything else has a corresponding override in docker run. We’ll go through what the developer might have set in each Dockerfile instruction and how the operator can override that setting.
Reference: https://docs.docker.com/engine/reference/run/#overriding-dockerfile…
Please disable your adblocker or whitelist this site!