← Quiz: Docker and Containers: all 10 questions
Quiz: Docker and Containers · Question 8 of 10
Why use a multi-stage build?
Why use a multi-stage build?
- A.The final image contains only the built output and runtime dependencies, not compilers and dev tools
- B.It makes the source code public
- C.It runs two containers at the same time
- D.It removes the need for a Dockerfile
Answer & explanation
Correct answer: The final image contains only the built output and runtime dependencies, not compilers and dev tools
Building in one stage and copying the result to a clean stage keeps production images small.
Can you get the rest right without peeking?
Take the timed Quiz: Docker and Containers quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →