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.

Containers vs. Zones vs. Jails vs. VMs (2017)

351 pointsby gullyfurabout 5 years ago

7 comments

outworlderabout 5 years ago
&gt; A “container” is just a term people use to describe a combination of Linux namespaces and cgroups. Linux namespaces and cgroups ARE first class objects. NOT containers.<p>Amen.<p>Somewhat tangential note: most developers I have met do not understand what a &#x27;container&#x27; is. There&#x27;s an aura of magic and mystique around them. And a heavy emphasis on Docker.<p>A sizable fraction will be concerned about &#x27;container overhead&#x27; (and &quot;scalability issues&quot;) when asked to move workloads to containers. They are usually not able to explain what the overhead would be, and what could potentially be causing it. No mention to storage, or how networking would be impacted, just CPU. That&#x27;s usually said without measuring the actual performance first.<p>When I press further, what I most commonly get is the sense that they believe that containers are &quot;like VMs, but lighter&quot;(also, I&#x27;ve been told that, literally, a few times, specially when interviewing candidates). To this day, I&#x27;ve heard CGroups being mentioned only once.<p>I wonder if I&#x27;m stuck in the wrong bubble, or if this is widespread.
评论 #22798494 未加载
评论 #22798134 未加载
评论 #22798060 未加载
评论 #22802211 未加载
评论 #22801908 未加载
评论 #22799270 未加载
评论 #22798061 未加载
评论 #22798009 未加载
评论 #22798544 未加载
评论 #22799068 未加载
评论 #22802518 未加载
评论 #22798111 未加载
评论 #22798035 未加载
评论 #22798106 未加载
评论 #22801406 未加载
评论 #22799347 未加载
评论 #22800252 未加载
评论 #22798462 未加载
评论 #22798156 未加载
评论 #22799081 未加载
评论 #22800644 未加载
评论 #22798457 未加载
评论 #22801474 未加载
评论 #22798504 未加载
moonchildabout 5 years ago
I&#x27;m a bit disappointed it didn&#x27;t go into detail into the way jails differ from zones. VMs I understand, but it seemed like the main point of the post was to distinguish containers from the other three.
评论 #22802184 未加载
评论 #22800437 未加载
mooredsabout 5 years ago
Note this is from 2017. Previous discussion: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13982620" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13982620</a>
评论 #22797867 未加载
dirtydroogabout 5 years ago
For my workload I&#x27;ve struggled to see the advantage containers would give me. Maybe someone here can convince me, rather than the current justification of &#x27;docker all the things&#x27;.<p>We have servers, they handle a lot of traffic. It&#x27;s the only thing running on the machines and takes over all the resources of the machine. It will need all the RAM, and all 16 vCPUs are at ~90%.<p>It&#x27;s running on GCP. To rollout we have a jenkins job that builds a tag, creates a package (dpkg) and builds an image. There&#x27;s another jenkins job that deploys the new image to all regions and starts the update process, autoscaling and all that.<p>Can containers help me here?
评论 #22802596 未加载
nfozabout 5 years ago
So.... are any or all of these what you would call a process &quot;sandbox&quot;? Do operating systems make it easy to sandbox an application from causing harm to the system? What more could be done to make that a natural, first-class feature?<p>Like, let&#x27;s say you found some binary and you don&#x27;t know what it does, and don&#x27;t want it to mess anything up. Is there an easy way to run it securely? Why not? And how about giving it specific, opt-in permissions, like limited network or filesystem access.
codeapeabout 5 years ago
I do not understand docker on windows.<p>If I understand correctly, when I run a docker image on Linux then the dockerized processes&#x27;s syscalls are all executed by the host kernel (since - again if I understand correctly - the dockerized process executes more or less like a normal process, just in isolated process and filesystem namespace).<p>Is this correct?<p>But how does docker on windows work?
评论 #22802942 未加载
deg4uss3rabout 5 years ago
My only problem with this article is there is no such thing as &quot;Legos&quot;. Jess is brilliant and explains things super well here.