Intermediate
Docker & Containers
Q43 / 100
Why does Docker use a layered filesystem for images, and what benefit does this provide?
Correct! Well done.
Incorrect.
The correct answer is B) Each instruction in a Dockerfile creates a new layer; layers are cached and can be shared between images, speeding up builds and reducing storage by reusing unchanged layers
B
Correct Answer
Each instruction in a Dockerfile creates a new layer; layers are cached and can be shared between images, speeding up builds and reducing storage by reusing unchanged layers
Explanation
Layer caching means unchanged instructions don't need to be re-executed on rebuild, and multiple images sharing a base can reuse the same underlying layers on disk, saving space and build time.
Progress
43/100