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.

Understanding the key differences between LXC and Docker

26 pointsby yungchinover 10 years ago

5 comments

dangover 10 years ago
This post was killed by user flags.
rwmjover 10 years ago
<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 未加载
neilellisover 10 years ago
&quot;Docker restricts the container to a single process only.&quot;<p>Nope it sure doesn&#x27;t.
评论 #8310787 未加载
评论 #8309252 未加载
评论 #8309112 未加载
评论 #8313816 未加载
rco8786over 10 years ago
&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 未加载
personZover 10 years ago
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 未加载