Posted by: Pdfprep
Post Date: November 23, 2020
You need to recommend a Docker container build strategy that meets the following requirements
• Minimizes image sues
• Minimizes the security surface area of the final image
What should you include m the recommendation?
A . multi-stage builds
B . single-stage builds
C . PowerShell Desired State Configuration (DSC)
D . Docker Swarm
Answer: A
Explanation:
Multi-stage builds are a new feature requiring Docker 17.05 or higher on the daemon and client. Multistage builds are useful to anyone who has struggled to optimize Dockerfiles while keeping them easy to read and maintain.
References: https://docs.docker.com/develop/develop-images/multistage-build/
Leave a Reply