Linux containers in 500 lines of code (2016)
Trending on Hacker News: Linux containers in 500 lines of code (2016) (79 points / 16 comments, via blog.lizzie.io)
Opening excerpt
I’ve used Linux containers directly and indirectly for years, but I wanted to become more familiar with them. So I wrote some code. This used to be 500 lines of code, I swear, but I’ve revised it some since publishing; I’ve ended up with about 70 lines more.
I wanted specifically to find a minimal set of restrictions to run untrusted code. This isn’t how you should approach containers on anything with any exposure: you should restrict everything you can. But I think it’s important to know which permissions are categorically unsafe! I’ve tried to back up things I’m saying with links to code or people I trust, but I’d love to know if I missed anything.
This is a noweb -style piece of literate code. References named <
There are several complementary and overlapping mechanisms that make up modern Linux containers. Roughly,
(Excerpted from the original; full article via the source link below.)
This story hit the Hacker News front page today (79 points / 16 comments, via blog.lizzie.io). Our Tech Radar aggregates daily signals on AI engineering, backend architecture and DevOps — browse the related services and further reading below, or get in touch with our team.
Source: Hacker News