I’m running TrueNAS SCALE 25.04.2.6 and have a lxc container where I run Docker (Portainer, Nginx Proxy Manager, WireGuard, etc.).
Everything was working fine for months. After a recent reboot, Docker containers inside this container no longer start.
Docker version 28.5.2
containerd containerd.io v2.2.1
runc version 1.3.4
and after the reboot, the portainer stopped working. When I tried to restrart portainer, I get the below error
docker: Error response from daemon: failed to create task for container:
failed to create shim task: OCI runtime create failed:
runc create failed: unable to start container process:
error during container init:
open sysctl net.ipv4.ip_unprivileged_port_start file:
reopen fd 8: permission denied
I did not upgrade to the latest version of TrueNAS, as I wish to pass a dedicated GPU to the VM, which I still need to buy. The current version does support passing integracted graphics to the VM and doesn’t complain about the host needs graphics.
However, I did not fully understand the solution for this. I tried to go with the lxc solution, but couldn’t find the file - /etc/apparmor.d/abstractions/lxc/container-base.
And for the incus, the post says, I cannot directly modify the apparmor. However, Incus has already been patched (in lxc/incus#2624). How do I get the daily builds?
Truenas uses incus as the lxc backend, you’d have to patch the incus version truenas uses, which you can’t do yourself. And since incus will be removed later this year with the truenas 26 update I doubt it will be fixed on truenas. If I remember correctly the issue started with a certain version of docker. You may be able the install an older release …
Edit:
Truenas uses incus version 6.0.4 and it was patched in 6.19