Score:3

Is it possible to mix Docker containers with LXC containers

co flag

One of the major challenges we're facing with dockerizing our apps is that there are a lot of dependencies that need to be installed. LXC has been great at that as they provide a "full linux system". However, we're faced with the need to add already prepared docker containers to the cluster that we're already running.

So is it possible to mix docker containers with LXC containers?

Score:3
vn flag

This is definitely possible, and also feasible. Docker and LXC/LXD serve different purposes.

  • Docker containers are geared towards running specific applications inside each container, and thus each container is more of a "one-trick pony".

  • LXC containers are intended to provide a persistent VM-like system in each container, so these are better for experiments and testing on full systems.

However, note that Docker and LXC/LXD are two different ecosystems, that aren't aware of each other. So any orchestration and interaction between the two needs to be set up separately for each.

Also, please see this image from one of Mark's presentations, that show the relation between different container technologies.

enter image description here

khatman avatar
co flag
Thanks for the answer. One more thing, I'm aware that Kubernetes supports both Docker and LXD containers. Can one mix them in a cluster?
Artur Meinild avatar
vn flag
I don't think so. I believe orchestration must be set within one container technology - but I don't know for sure if it's possible.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.