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.

How is Docker.io different from a normal virtual machine?

308 pointsby jaynateover 11 years ago

13 comments

bobfover 11 years ago
Docker doesn&#x27;t add a whole lot over what basic Linux containers (lxc and vserver) have offered for years. Having said that, the main benefit to Docker is a change in viewpoint from &quot;virtual machine&quot; to &quot;application&quot;. Docker aims to make applications portably deployable to any Docker-machine. Since Docker uses lxc (aka Linux containers), it helps to understand a little how containers are different from other virtualization.<p>Conceptually, they are similar to Linux&#x27;s chroots or FreeBSD&#x27;s jails, which offer process isolation. Basically, they work with a lightweight virtual machine instead of a single process. Containers have lower overhead - they are virtualizing on the operating system level. Other virtualization technologies like Xen and KVM work on the CPU level, and provide a fully virtualized hardware setup to the virtual machine[s].
评论 #6379014 未加载
评论 #6378640 未加载
评论 #6379112 未加载
评论 #6380631 未加载
dhaivatpandyaover 11 years ago
I recently wrote an article that covers some of this ground: <a href="http://www.sitepoint.com/docker-for-rubyists/" rel="nofollow">http:&#x2F;&#x2F;www.sitepoint.com&#x2F;docker-for-rubyists&#x2F;</a><p>The basic idea behind Docker is that you don&#x27;t have to create another operating system in order to just separate your processes from each other. This leads to containers being much more lightweight than virtual machines but also significantly less powerful (i.e. powerful as in ability to do something, not in terms of performance) in some areas.
评论 #6378395 未加载
csenseover 11 years ago
I&#x27;ve been having trouble figuring out the value-add of using Docker over Ubuntu&#x27;s built-in LXC functionality [1].<p>[1] <a href="https://help.ubuntu.com/12.04/serverguide/lxc.html" rel="nofollow">https:&#x2F;&#x2F;help.ubuntu.com&#x2F;12.04&#x2F;serverguide&#x2F;lxc.html</a>
评论 #6378823 未加载
评论 #6378435 未加载
评论 #6379747 未加载
评论 #6388364 未加载
评论 #6380167 未加载
评论 #6378437 未加载
评论 #6379296 未加载
ailoxover 11 years ago
I Would love to migrate 50+ KVM VMs to LXC-Containers, but there seem to be some problems left with security[1][2]. I cant wait to get my hands on Docker, but I lack the SELinux knowledge to secure everything the &#x27;proper&#x27; way.<p>Is LXC (and therefore Docker) really ready for Production yet?<p>Edit: Formatting.<p>---<p>[1] <a href="http://mattoncloud.org/2012/07/16/are-lxc-containers-enough/" rel="nofollow">http:&#x2F;&#x2F;mattoncloud.org&#x2F;2012&#x2F;07&#x2F;16&#x2F;are-lxc-containers-enough&#x2F;</a><p>[2] <a href="https://blog.flameeyes.eu/2010/06/lxc-and-why-it-s-not-prime-time-yet" rel="nofollow">https:&#x2F;&#x2F;blog.flameeyes.eu&#x2F;2010&#x2F;06&#x2F;lxc-and-why-it-s-not-prime...</a>
评论 #6380918 未加载
rdlover 11 years ago
I really don&#x27;t like giving up the isolation of modern hypervisors, particularly those with Intel virtualization extensions. Docker (and LXC) seems like a huge step backwards for security. I&#x27;m sure there are use cases, but I&#x27;d never multi-tenant with it.
评论 #6378871 未加载
评论 #6378892 未加载
评论 #6379056 未加载
estover 11 years ago
I always wanted to ask a question about docker, if the local devel machine is ubuntu 12.04, I can not deploy my docker image build to a 10.04 ubuntu server, right? (Unless you run a 12.04 virtual machine or something.)
评论 #6378996 未加载
评论 #6378875 未加载
评论 #6378955 未加载
anoopeliasover 11 years ago
One of the issues I found with contributing to open source is the time it takes to get a build environment up and running. Since different people face different kind of issues and projects usually lack an exhaustive documentation, I&#x27;ve always felt adding a light weight image of the build environment could help. I hope in future Docker or similar projects pave the way for it.
评论 #6380447 未加载
yaloginover 11 years ago
I thought docker just makes creating, deploying and managing LXC &quot;enabled&quot; applications easier. Do they add anything to the LXC ecosystem other than the online sharing of containers?
评论 #6378693 未加载
评论 #6378650 未加载
general_failureover 11 years ago
Compare this with vagrant
评论 #6379636 未加载
评论 #6378700 未加载
评论 #6378784 未加载
theatraineover 11 years ago
I wonder how Microsoft&#x27;s Drawbridge OS (<a href="http://research.microsoft.com/en-us/projects/drawbridge/" rel="nofollow">http:&#x2F;&#x2F;research.microsoft.com&#x2F;en-us&#x2F;projects&#x2F;drawbridge&#x2F;</a>) will compare to LXC, and the Docker APIs? Currently Drawbridge looks like it&#x27;s lacking adoption, and doesn&#x27;t seem to be widely available. Regardless, the container model looks like it solves a lot of PaaS security issues without the overhead of VMs (Iaas).
portmanteaufuover 11 years ago
Ha! Crazy to see a question I asked 5 months ago pop up on Hacker News.<p>The docker.io team has said that they don&#x27;t consider it to be production ready [0]. Has anyone experienced any major problems? Anyone using it in production?<p>[0] <a href="http://blog.docker.io/2013/08/getting-to-docker-1-0/" rel="nofollow">http:&#x2F;&#x2F;blog.docker.io&#x2F;2013&#x2F;08&#x2F;getting-to-docker-1-0&#x2F;</a>
评论 #6380829 未加载
rralianover 11 years ago
Holy cow, the unit test case is fantastic.
评论 #6378791 未加载
评论 #6378812 未加载
somberinadover 11 years ago
How is this different from HPUX or Solaris Package managers? Asking to learn.