Your experience with Docker in LXC

Martino Rabe

Renowned Member
Jul 24, 2016
16
1
68
44
Hello,

I have a lot of Docker containers that I would like to run together in an LXC container or in a virtual machine under Proxmox.
I would like to create the LXC container using the following command:

Code:
pct create 100 local:vztmpl/ubuntu-24.04-standard_24.04-2_amd64.tar.zst --hostname test --cores 2 --memory 2048 --net0 name=eth0,bridge=vmbr0,firewall=1,ip=dhcp --rootfs=zdisk:40 --features nesting=1 --unprivileged 1

What is your experience with running about 10 Docker systems via Portainer (for better management) in an LXC container?

Proxmox -> LXC -> Docker

Does that make sense or does it cause a lot of problems?
 
From proxmox wiki:
"If you want to run application containers, for example, Docker images, it is recommended that you run them inside a Proxmox QEMU VM. This will give you all the advantages of application containerization, while also providing the benefits that VMs offer, such as strong isolation from the host and the ability to live-migrate, which otherwise isn’t possible with containers."

https://pve.proxmox.com/wiki/Linux_Container

Since lxc and docker uses the same stuff from the kernel, mixing them is problematic
 
  • Like
Reactions: LnxBil and UdoB

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!