logoalt Hacker News

xmodemtoday at 5:49 PM2 repliesview on HN

> The cool part about FROM scratch images is that you'll never have to update your base image to address CVEs. Only your software and its (compiled) dependencies.

What's the benefit really, though? If you still need to be able to rapidly deploy a new image in response to a dependency CVE, what have you gained?


Replies

regularfrytoday at 6:27 PM

You've gained that happening much less frequently. The tradeoff is making every other problem harder to diagnose.

show 1 reply
OptionOfTtoday at 6:58 PM

If the base image I use is based on Debian, it comes with more than 15 binaries that I don't use.

But when Docker scans my image and notices that there is a CVE in one of those binaries, my image is currently out of compliance.

FROM scratch just reduces the surface.

show 1 reply