ExamGecko
Question list
Search
Search

Question 35 - 305-300 discussion

Report
Export

What happens when the following command is executed twice in succession?

docker run -tid -v data:/data debian bash

A.
The container resulting from the second invocation can only read the content of /data/ and cannot change it.
Answers
A.
The container resulting from the second invocation can only read the content of /data/ and cannot change it.
B.
Each container is equipped with its own independent data volume, available at /data/ in the respective container.
Answers
B.
Each container is equipped with its own independent data volume, available at /data/ in the respective container.
C.
Both containers share the contents of the data volume, have full permissions to alter its content and mutually see their respective changes.
Answers
C.
Both containers share the contents of the data volume, have full permissions to alter its content and mutually see their respective changes.
D.
The original content of the container image data is available in both containers, although changes stay local within each container.
Answers
D.
The original content of the container image data is available in both containers, although changes stay local within each container.
E.
The second command invocation fails with an error stating that the volume data is already associated with a running container.
Answers
E.
The second command invocation fails with an error stating that the volume data is already associated with a running container.
Suggested answer: C
asked 18/09/2024
Bhavya AGGARWAL
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first