← 返回技术雷达
Hacker News tech

Linux containers in 500 lines of code (2016)

Hacker News 热议:Linux containers in 500 lines of code (2016)(79 赞 / 16 评论,来源 blog.lizzie.io)

原文开头节选

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 <> will be expanded to the code block named x . You can find the tangled source here . This document is an orgmode document, you can find its source here . This document and this code are licensed under the GPLv3; you can find its source here .

There are several complementary and overlapping mechanisms that make up modern Linux containers. Roughly,

(以上为原文节选,完整内容见下方”原文来源”)

这条动态今日登上 Hacker News 首页(79 赞 / 16 评论,来源 blog.lizzie.io)。技术雷达每日自动聚合 AI 工程、后端架构、DevOps 方向的前沿动态;相关工程落地可浏览下方的相关服务与延伸阅读,或直接与我们团队交流。

原文来源: Hacker News

相关服务