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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Understanding the key differences between LXC and Docker

26 点作者 yungchin超过 10 年前

5 条评论

dang超过 10 年前
This post was killed by user flags.
rwmj超过 10 年前
<i>&quot;Containers isolate and encapsulate your application workloads from the host system. Think of a container as an OS within your host OS in which you can install and run applications, and for all practical purposes behaves like an virtual machine. Containers decouple your applications from the host OS.&quot;</i><p>Wrong wrong wrong. Containers do not encapsulate (in the security sense). You can get some security by layering SELinux underneath, but you&#x27;re still wide open to a range of kernel exploits. A container is not &quot;an OS within [an] OS&quot;. Containers do not &quot;for all practical purposes behave like a VM&quot; since you can&#x27;t run another kernel, BSD, Windows, etc on them. Containers do not decouple your app from the host OS, you are very much dependent on features compiled into your host kernel. Subtle userspace&lt;-&gt;kernel ABI regressions will cause you days of debugging (I&#x27;ve been there several times).<p><i>&quot;[VMs] .. at a performance penalty and without the same flexibility&quot;</i><p>After boot, there&#x27;s almost no difference in performance. Boot time <i>is</i> a huge factor, but don&#x27;t confuse the two.<p>Containers have their place, are useful and very fast to provision, when you understand and accept their limitations (as many do), but don&#x27;t spread nonsense like this.
评论 #8309759 未加载
neilellis超过 10 年前
&quot;Docker restricts the container to a single process only.&quot;<p>Nope it sure doesn&#x27;t.
评论 #8310787 未加载
评论 #8309252 未加载
评论 #8309112 未加载
评论 #8313816 未加载
rco8786超过 10 年前
&gt; Docker restricts the container to a single process only.<p>&gt; When it comes to applications for a LAMP container you would need to build 3 containers that consume services from each other, a PHP container, an Apache container and a MySQL container.<p>Huh??
评论 #8310164 未加载
personZ超过 10 年前
While people contemplate things like containers, it&#x27;s worth noting that modern hardware virtualization imposes a performance overhead of low single digital percentage points, and with some technologies like deduplication of storage and memory can paradoxically improve performance over bare metal in many scenarios.<p>Containers are interesting and the technology is emerging, but for 1-2% overhead it just isn&#x27;t as critical as its often held.
评论 #8309198 未加载
评论 #8309570 未加载
评论 #8310211 未加载