Docker libcontainer unifies Linux container powers

Docker libcontainer unifies Linux container powers

Summary: Containers are finally coming into their own as a virtualization alternative, but until now their programs were incompatible. Now, the major container players are agreeing to line up behind Docker's libcontainer.

SHARE:

At DockerCon in San Francisco, Docker CTO and co-founder Solomon Hykes announced that the company would work as full partners with its former container technology rivals on Docker's key open-source component libcontainer.

Libcontainer-diagram
How libcontainer works with Linux services.

What makes this important, even vital, news to the larger world of system administrators, datacenter managers, and cloud architects, is that Google, Red Hat, and Parallels are now helping build the program. Indeed, they will work with Docker as core maintainers of the code. Canonical's Ubuntu container engineers will also be working on it.

In other words, libcontainer is well on its way to becoming the default standard for Linux-based containers. Indeed, if rumors are true that Microsoft is working on bringing Docker-based containers to its Azure cloud.

Libcontainer enables containers to work with Linux namespaces, control groups, capabilities, AppArmor security profiles, network interfaces and firewalling rules in a consistent and predictable way. It doesn't rely on Linux userspace components such as LXC, libvirt, or systemd-nspawn Docker claims "This drastically reduces the number of moving parts, and insulates Docker from the side-effects introduced across versions and distributions of LXC."

In an e-mail interview, James Bottomley, Parallels' CTO of Server Virtualization and the Linux Foundation Technical Advisory Board Chair, said, "We've finally managed to launch a unified effort around libcontainer. This is the library that will expose granular container features to applications that want them [hoping to spawn new generations of Docker like apps] and also allow us to make our tools go much more seamlessly across our disparate products." For example, this "would allow things like Docker and LXC to deploy on to OpenVZ or even our cloud server product."

Libcontainer, which is written natively in Google's Go, is also being ported into other languages. Microsoft may be porting it to ASP.NET.  Parallels' libct, which includes libcontainer's functionality, has native C/C++ and Python bindings.

Bottomley added that "We [Parallels] are going to refactor the code so that the Docker Go code calls into libct at the low level. This will give us the same code paths for the Go and C/C++/Python APIs.  The net result for Docker will be that it will give it native integration with checkpoint/restore and live migration. The accrual for  us is that the Go library Docker uses to orchestrate containers will then work on OpenVZ and Parallels Cloud Server."

I think that libcontainer will soon become the default library for Linux containers. That's not just because so many powerhouse companies are now working on it, they're also already using it. Besides Red Hat embracing it in the just released Red Hat Enterprise Linux 7, Google is moving to Docker for its containers.

‎Eric Brewer, Google VP of Infrastructure also said at DockerCon that Google, which already uses containers to run almost all Google apps, said at DockerCon that Google would be using Docker and libcontainer for containers in its Google Compute Engine Infrastructure-as-a-Server (IaaS) cloud. When companies are putting customers as well as programmers on a technology, you know they're serious about it.

Related stories:

Topics: Virtualization, Cloud, Enterprise Software, Linux, Open Source

Kick off your day with ZDNet's daily email newsletter. It's the freshest tech news and opinion, served hot. Get it.

Talkback

4 comments
Log in or register to join the discussion
  • Docker libcontainer unities Linux container powers

    Kudos to The Docker container open-source project.

    Will see more articles with this project.
    daikon
  • Difference between Docker and ProxMox?

    Can you please explain the differences? ProxMox was doing container virtualization since a long time. What is special in Docker to make it become the standard so fast? Thanks in advance for any clarification.
    RelaxWalk
    • libcontainer

      It's in the first sentence of the article. Libcontainer.

      "At DockerCon in San Francisco, Docker CTO and co-founder Solomon Hykes announced that the company would work as full partners with its former container technology rivals on Docker's key open-source component libcontainer."
      Tim Jordan
      • libcontainer is the key success ?

        Hi Tim,

        Thanks. Actually I don't know well enough to appreciate your answer. But at least this gives me directions to read further documentation.
        RelaxWalk