TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: If not containers, what then?

1 点作者 agomez31412 个月前
Containers are useful in packaging applications and running them in isolation from other programs. This seems to be the de-facto standard in the software industry. What are alternatives to containers that provide similar capabilities?<p>More philosophically, are containers a necessary component needed to run software at scale (such as replication and partitioning)? Or are they the result of the accidental complexity the modern OS has?

2 条评论

baobun12 个月前
&gt; What are alternatives to containers that provide similar capabilities?<p>VMs on one hand, tools like Guix and Nix on the other.<p>&gt; More philosophically, are containers a necessary component needed to run software at scale (such as replication and partitioning)?<p>No. They&#x27;re one tool in the box among others. They&#x27;re common for reasons, though.<p>&gt; Or are they the result of the accidental complexity the modern OS has?<p>What does this even mean?
评论 #40522961 未加载
jonahbenton12 个月前
Historically the container as a product was not OS complexity derived, but language packaging and runtime heterogeneity derived. C&#x2F;C++, Java, Ruby, Python, Go, etc all have different packaging practices and trying to unify those inconsistencies across a fleet was what inspired the container, which was possible because underlying OS technologies like namespacing and layered filesystems existed.<p>The namespacing and layered filesystem work in the OS that make containers possible itself arose through other motivations within kernel scope to actually reduce accidental complexity and make various workloads, like suspend and resume, more sane.<p>Now that containers exist and have been successful, related but alternate tech like unikernels have seen interest, to reduce the security surface and further optimize deployments of large fleets.