Difference between LXC and libcontainer

2019-02-04 09:30发布

问题:

While going through docker docs, I found that docker is now using libcontainer instead of LXC. Has anyone idea about how libcontainer is better ( If so..) than LXC ?

回答1:

  • Linux Containers (LXC) was used before docker 1.8 as one execution driver by docker, and offered a userspace interface for the Linux kernel containment features. It is very specific to Linux

  • libcontainer (now opencontainers/runc) is an abstraction, in order to support a wider range of isolation technologies as described in this article

That means Docker is abstracting itself from its original implementation, allowing other vendors (like CoreOS) to implement their own version of containers.



回答2:

I would rather recommend you to go through this link to have a complete understanding of why Docker started libcontainer

http://www.zdnet.com/article/docker-libcontainer-unifies-linux-container-powers/



回答3:

As I am aware.. LXC was default execution driver for docker engine to execute its container/namespace and other. Docker developed 'libcontainer' and added to their docker engine. Correct me if I am wrong.



标签: docker lxc