umbrel icon indicating copy to clipboard operation
umbrel copied to clipboard

Distroless images improves security posture

Open naveensrinivasan opened this issue 4 years ago • 1 comments
trafficstars

Restricting what's in your runtime container to precisely what's necessary for your app is a best practice employed by Google and other tech giants that have used containers in production for many years. It improves the signal to noise of scanners (e.g. CVE) and reduces the burden of establishing provenance to just what you need.

Distroless images are very small. The smallest distroless image, gcr.io/distroless/static, is around 650 kB. That's about 25% of the size of alpine (~2.5 MB), and less than 1.5% of the size of debian (50 MB).

For example, gcr.io/distroless/static is a container image that's much smaller than this image of a shipping container. It's about 1/3rd the size of all the resources on this page you're reading right now. It's very small.

https://github.com/GoogleContainerTools/distroless#why-should-i-use-distroless-images https://github.com/GoogleContainerTools/distroless#how-do-i-verify-distroless-images

naveensrinivasan avatar Oct 10 '21 17:10 naveensrinivasan

A friendly ping @lukechilds @mayankchhabra

naveensrinivasan avatar Mar 05 '22 13:03 naveensrinivasan