Docker Best Practices: How to Build Smaller and Safer Containers

Docker Best Practices: How to Build Smaller and Safer Containers

When you pull down a default base image for your application, it often comes packed with extra binaries: compilers, package managers, shell utilities, and legacy libraries. While these tools make building applications convenient during development, leaving them in production containers creates two major problems: massive image sizes and an expanded attack surface. Every extra package inside a container is another item to scan for vulnerabilities, patch, and maintain. If an attacker gains executi

When you pull down a default base image for your application, it often comes packed with extra binaries: compilers, package managers, shell utilities, and legacy libraries. While these tools make building applications convenient during development, leaving them in production containers creates two major problems: massive image sizes and an expanded attack surface. Every extra package inside a container is another item to scan for vulnerabilities, patch, and maintain. If an attacker gains executi

This article was originally published by Dev Community.

Read Full Story on Source Site →
Share: