TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Building a Linux Container Runtime from Scratch

217 pointsby curmudgeon22about 2 months ago

10 comments

pss314about 2 months ago
I loved this hands-on presentation Containers From Scratch by Liz Rice from few years ago <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=8fi7uSYlOdc" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=8fi7uSYlOdc</a>.<p>Today, Linux containers in (less than) 100 lines of shell by Michael Kerrisk was published <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=4RUiVAlJE2w" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=4RUiVAlJE2w</a>.
评论 #43489608 未加载
评论 #43491736 未加载
评论 #43491722 未加载
评论 #43496389 未加载
评论 #43490601 未加载
Joker_vDabout 2 months ago
&gt; Importantly, we designed Styrolite with full awareness that Linux namespaces were never intended as hard security boundaries—a fact that explains why container escape vulnerabilities continue to emerge. Our approach acknowledges these limitations while providing a more robust foundation.<p>So what do you do, exactly?
评论 #43492385 未加载
评论 #43493766 未加载
评论 #43492604 未加载
seungwoolee518about 2 months ago
When I was digging into Container (a.k.a it uses linux namespace capabilities) lwn.net&#x27;s series of article helps me a lot.<p><a href="https:&#x2F;&#x2F;lwn.net&#x2F;Articles&#x2F;531114&#x2F;#series_index" rel="nofollow">https:&#x2F;&#x2F;lwn.net&#x2F;Articles&#x2F;531114&#x2F;#series_index</a>
shortrounddev2about 2 months ago
I&#x27;ve seen many examples of people creating containers for Linux; I wish it were comparably easier to create containers for Windows. The fundamental software exists on Windows (AppContainers are how UWP apps work) but the documentation around AppContainers is very sparse&#x2F;opaque because Microsoft doesn&#x27;t want you to use AppContainers to make a general purpose sandbox environment like Snap or Flatpak; they want you to write UWP apps. It would be immensely helpful if you could run any arbitrary win32 or higher application in a sandboxed AppContainer where the NT System calls only had access to, say, the application&#x27;s local folder and its %APPDATA% folder.<p>Alas, I think that Microsoft has simply given up on Native application support on Windows. Currently the only good way to write native apps for windows is still Win32&#x2F;MFC and Winforms.<p>In fact, I think that secretly even Microsoft knows that everyone hates their UI frameworks&#x2F;runtimes (and the fact that Microsoft deprecates them 2 years into their lifespan) because Microsoft STILL provides modern .Net 8&#x2F;9 bindings for Winforms in 2025. If only they would just replace the GDI renderer with Direct2D, it would be literally perfect
评论 #43491286 未加载
m00dyabout 2 months ago
We are an algorithmic trading company [0], and our trading strategies are primarily built as pure Rust libraries. We&#x27;ve been searching for a way to sandbox the strategies we host, as not all of them are signed or open source for verification. Styrolite seems like a promising solution to address this issue, so we’re planning to give it a try.<p>[0]: <a href="https:&#x2F;&#x2F;cycletop.xyz" rel="nofollow">https:&#x2F;&#x2F;cycletop.xyz</a>
评论 #43492969 未加载
pzmarzlyabout 2 months ago
Why not use any of the existing OCI Runtimes? They take well-defined[0] JSON description as input, and are pretty well-contained (single static binary). And because they are separate binaries, not libraries, you don&#x27;t need to worry about things like thread safety or FD leaking.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;opencontainers&#x2F;runtime-spec&#x2F;blob&#x2F;main&#x2F;config.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;opencontainers&#x2F;runtime-spec&#x2F;blob&#x2F;main&#x2F;con...</a>
评论 #43490804 未加载
评论 #43488158 未加载
评论 #43490590 未加载
infogulchabout 2 months ago
How does this compare to recently discussed Landrun?<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=43445662">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=43445662</a>
cedwsabout 2 months ago
Isn’t the gold standard of containerisation gVisor? Can’t get much more restrictive than proxying and filtering syscalls. As far as I remember it’s the default runtime on GKE.
评论 #43492892 未加载
评论 #43491625 未加载
评论 #43494149 未加载
TechDebtDevinabout 2 months ago
Cookie consent card wont disappear. Brave mobile.
评论 #43490634 未加载
asicspabout 2 months ago
See also:<p>* <a href="https:&#x2F;&#x2F;ericchiang.github.io&#x2F;post&#x2F;containers-from-scratch&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ericchiang.github.io&#x2F;post&#x2F;containers-from-scratch&#x2F;</a><p>* <a href="https:&#x2F;&#x2F;indradhanush.github.io&#x2F;blog&#x2F;life-of-a-container&#x2F;" rel="nofollow">https:&#x2F;&#x2F;indradhanush.github.io&#x2F;blog&#x2F;life-of-a-container&#x2F;</a>