Been trying to run Docker inside of an Ubuntu 20.04 LXC and I keep getting this error:
I have nesting turned on. If I remove AppArmor (sudo apt remove apparmor) the container runs just fine. Docker also works fine with the Ubuntu 18.04 container template and Debian without removing apparmor. It also works if I upgrade a 18.04 image to 20.04. There seems to be an issue with the 20.04 template only.
Code:
ERROR: for CONTAINER_NAME Cannot start service CONTAINER_NAME: AppArmor enabled on system but the docker-default profile could not be loaded: running `/sbin/apparmor_parser apparmor_parser -Kr /var/lib/docker/tmp/docker-default149283076` failed with output: apparmor_parser:Unable to replace "docker-default". Permission denied; attempted to load a profile while confined?
error: exit status 243
I have nesting turned on. If I remove AppArmor (sudo apt remove apparmor) the container runs just fine. Docker also works fine with the Ubuntu 18.04 container template and Debian without removing apparmor. It also works if I upgrade a 18.04 image to 20.04. There seems to be an issue with the 20.04 template only.