Skip to content

Instantly share code, notes, and snippets.

@afanjul
Last active June 14, 2023 18:08
Show Gist options
  • Save afanjul/492ca7b10982f6de2cb2c475fe76af6a to your computer and use it in GitHub Desktop.
Save afanjul/492ca7b10982f6de2cb2c475fe76af6a to your computer and use it in GitHub Desktop.
Install Docker inside LXC container - Proxmox VE
1.Add “aufs” or “overlay” (or both) to /etc/modules-load.d/modules.conf in your PVE host and reboot. Check it with lsmod | grep -E 'overlay|aufs'
2.Use a LXC image with unprivilege features (you can check them here: https://uk.images.linuxcontainers.org/)
3.Create the container with unprivilege option, and “keyctl=1, nesting=1” features (Options section in proxmox).
4.Maybe you would want to mount an external point into /var/lib/docker (Resources section in proxmox)
5.Check this link (https://docs.docker.com/storage/storagedriver/overlayfs-driver/#configure-docker-with-the-overlay-or-overlay2-storage-driver) to change your storage-driver in docker to use aufs or overlay2.
6.Install portainer: https://portainer.readthedocs.io/en/latest/deployment.html
Voilá…
@Hornochs
Copy link

Hornochs commented Apr 1, 2023

Aaaah that’s the reason, I see. Well my fix was to backup with the stop mode, not Snapshot or suspend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment