logoalt Hacker News

dpe82yesterday at 9:03 PM2 repliesview on HN

Nitpick, which probably doesn't matter too much in this context but is always good to remember: Docker containers are not security boundaries.


Replies

PlasmaPoweryesterday at 9:21 PM

Why not? They're definitely not perfect security boundaries, but neither are VMs. I think containers provide a reasonable security/usability tradeoff for a lot of use cases including agents. The primary concern is kernel vulnerabilities, but if you're keeping your kernel up-to-date it's still imo a good security layer. I definitely wouldn't intentionally run malware in it, but it requires an exploit in software with a lot of eyes on it to break out of.

show 1 reply
fredoliveirayesterday at 9:35 PM

counter-intuitively, the fact that docker on the mac requires a linux-based VM makes it safer than it otherwise would be. But your point stands in general, of course.