ProxmoxV7 lxc problem with docker

mRZ

New Member
Jul 13, 2021
13
0
1
31
Hey,

Nachdem ich auf pve7 geupdatet habe starten meine lxc mit installiertem docker, docker nicht mehr.
Ich vermute, dass es an cgroup Version 2 liegt.

Folgende zusätzlich Optionen sind zur Zeit aktiviert:
- lxc.cgroup.devices.allow = a
- lxc.apparmor.profile: unconfined
- lxc.cap.drop:

Zusätzlich habe ich statt "lxc.cgroup.devices.allow = a" noch "lxc.cgroup2.devices.allow = a", "lxc.init.cmd = /sbin/init systemd.unified_cgroup_hierarchy=1" und "lxc.mount.auto = cgroup:rw:force" ausprobiert, jedoch erfolglos

Hat jemand eine Idee, wie ich docker wieder zum laufen bekommen kann?
 
hi,

mit unprivileged ubuntu 20 container und nesting geht es problemlos:

Code:
$ pct create 300000 local:vztmpl/ubuntu-20.04-standard_20.04-1_amd64.tar.gz --unprivileged 1 --net0 name=eth0,ip=dhcp,firewall=1,bridge=vmbr0 --storage local-lvm --features nesting=1
$ pct start 300000
$ pct enter 300000
# apt update && apt full-upgrade -y
# exit
$ pct reboot 300000
$ pct enter 300000
# apt install docker.io
# docker run hello-world
 
Vielen Dank!

gibt es einen Weg meinen privileged lxc zu "konvertieren"?
 
gibt es einen Weg meinen privileged lxc zu "konvertieren"?
ja. du kannst ein backup/restore machen und beim restore "unprivileged" checkbox auswaehlen
 
Perfekt!

Jetzt habe ich nur noch das Problem, dass die GUI beim restore nicht richtig angezeigt wird:
2021-07-13 15_44_40-pve - Proxmox Virtual Environment.png

Somit kann ich nun nicht auf restore klicken.
Ein ähnliches Problem habe ich seit dem Update nun auch, wenn ich z.B. einen Container über die GUI erstellen möchte:
1626184059328.png
 
geht es mit einem anderen browser z.b. auch mit incognito mode (ohne plugins/addons)??

wenn nicht dann bitte die ausgabe von pveversion -v posten
 
Es lag am "uBlock Origin" Plugin.
Mit deaktiviertem Plugin lässt sich die GUI wieder benutzen, allerdings bekomme ich folgende Fehlermeldung beim Restore:

recovering backed-up configuration from 'PBS:backup/ct/100/2021-07-13T11:02:13Z' restoring 'PBS:backup/ct/100/2021-07-13T11:02:13Z' now.. Error: error extracting archive - error at entry "backingFsBlockDev": failed to create device node: Operation not permitted (os error 1) TASK ERROR: unable to restore CT 100 - command 'lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- /usr/bin/proxmox-backup-client restore '--crypt-mode=none' ct/100/2021-07-13T11:02:13Z root.pxar /var/lib/lxc/100/rootfs --allow-existing-dirs --repository root@pam@192.168.1.201:Synology' failed: exit code 255

2021-07-13 16_08_06-pve - Proxmox Virtual Environment.png
 

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!