ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 249 - DOP-C01 discussion

Report
Export

Which of the following Dockerfile commands cannot be overridden at runtime?

A.
VOLUME
Answers
A.
VOLUME
B.
USER
Answers
B.
USER
C.
ADD
Answers
C.
ADD
D.
CMD
Answers
D.
CMD
Suggested answer: C

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-image-defaults

asked 16/09/2024
Joseph Washington
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first