Machine-translated by Google. Questions are authored in English.
Top

Discussion

Consider the following statements about container images.
1. Layers are immutable once built.
2. A running container adds a writable layer on top.
3. Changes made in a running container persist in the image.

  • A.1 only
  • B.All of them
  • C.1 and 2 only
  • D.3 only

Answer: C

Correct answer: 1 and 2 only

Statements 1 and 2 are correct: built layers are immutable, and a running container gets a thin writable layer above them through copy-on-write. Statement 3 is wrong - that writable layer belongs to the container instance and is discarded when it is removed. Changes become part of an image only through a deliberate build or commit.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.