Hi guys,
I am quite new to Proxmox. I do have a privileged container (need to mount NFS within a docker container). Everything was running fine for 2 months. Yesterday I did update the LXC and now the paperless container running inside the LXC wont start anymore.
This is the error message when running docker-compose up -d:
Starting paperless_broker_1 ... error
ERROR: for paperless_broker_1 Cannot start service broker: AppArmor enabled on system but the docker-default profile could not be loaded: running `/usr/sbin/apparmor_parser apparmor_parser -Kr /var/lib/docker/tmp/docker-default2635317771` failed with output: apparmor_parser: Unable to replace "docker-default". Permission denied; attempted to load a profile while confined?
error: exit status 243
I tried to disable apparmor for this container by adding the following line at the end of the file /etc/pve/lxc/${container_id}.conf as stated in the documentation:
lxc.apparmor.profile = unconfined
and than I rebooted the LXC
I also ensured that apparmor is not installed on the LXC (Ubuntu 22.04) using this command
sudo apt purge apparmor apparmor-utils auditd
But still apparmor is enabled: docker info gives me:
Security Options:
apparmor
seccomp
When I try to install the apparmor packages I end up with the following errors:
sudo apt install apparmor apparmor-utils auditd
Created symlink /etc/systemd/system/multi-user.target.wants/auditd.service -> /lib/systemd/system/auditd.service.
Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 142.
Setting up apparmor (3.0.4-2ubuntu2.1) ...
apparmor_parser: Unable to replace "lsb_release". Permission denied; attempted to load a profile while confined?
apparmor_parser: Unable to replace "kmod". Permission denied; attempted to load a profile while confined?
apparmor_parser: Unable to replace "nvidia_modprobe". Permission denied; attempted to load a profile while confined?
Created symlink /etc/systemd/system/sysinit.target.wants/apparmor.service -> /lib/systemd/system/apparmor.service.
Reloading AppArmor profiles
/sbin/apparmor_parser: Unable to replace "kmod". Permission denied; attempted to load a profile while confined?
/sbin/apparmor_parser: Unable to replace "nvidia_modprobe". Permission denied; attempted to load a profile while confined?
/sbin/apparmor_parser: Unable to replace "lsb_release". Permission denied; attempted to load a profile while confined?
/sbin/apparmor_parser: Unable to replace "/usr/bin/man". Permission denied; attempted to load a profile while confined?
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
/sbin/apparmor_parser: Unable to replace "tcpdump". Permission denied; attempted to load a profile while confined?
/sbin/apparmor_parser: Unable to replace "/usr/lib/NetworkManager/nm-dhcp-client.action". Permission denied; attempted to load a profile while confined?
/sbin/apparmor_parser: Unable to replace "lsb_release". Permission denied; attempted to load a profile while confined?
/sbin/apparmor_parser: Unable to replace "kmod". Permission denied; attempted to load a profile while confined?
/sbin/apparmor_parser: Unable to replace "nvidia_modprobe". Permission denied; attempted to load a profile while confined?
/sbin/apparmor_parser: Unable to replace "/usr/bin/man". Permission denied; attempted to load a profile while confined?
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
/sbin/apparmor_parser: Unable to replace "tcpdump". Permission denied; attempted to load a profile while confined?
/sbin/apparmor_parser: Unable to replace "/usr/lib/NetworkManager/nm-dhcp-client.action". Permission denied; attempted to load a profile while confined?
Error: At least one profile failed to load
Setting up apparmor-utils (3.0.4-2ubuntu2.1) ...
Processing triggers for man-db (2.10.2-1) ...
apt install apparmor apparmor-utils auditd
Can anybody please help me either to disable apparmor or to get it install correctly.
Thanks a lot
Fritz
I am quite new to Proxmox. I do have a privileged container (need to mount NFS within a docker container). Everything was running fine for 2 months. Yesterday I did update the LXC and now the paperless container running inside the LXC wont start anymore.
This is the error message when running docker-compose up -d:
Starting paperless_broker_1 ... error
ERROR: for paperless_broker_1 Cannot start service broker: AppArmor enabled on system but the docker-default profile could not be loaded: running `/usr/sbin/apparmor_parser apparmor_parser -Kr /var/lib/docker/tmp/docker-default2635317771` failed with output: apparmor_parser: Unable to replace "docker-default". Permission denied; attempted to load a profile while confined?
error: exit status 243
I tried to disable apparmor for this container by adding the following line at the end of the file /etc/pve/lxc/${container_id}.conf as stated in the documentation:
lxc.apparmor.profile = unconfined
and than I rebooted the LXC
I also ensured that apparmor is not installed on the LXC (Ubuntu 22.04) using this command
sudo apt purge apparmor apparmor-utils auditd
But still apparmor is enabled: docker info gives me:
Security Options:
apparmor
seccomp
When I try to install the apparmor packages I end up with the following errors:
sudo apt install apparmor apparmor-utils auditd
Created symlink /etc/systemd/system/multi-user.target.wants/auditd.service -> /lib/systemd/system/auditd.service.
Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 142.
Setting up apparmor (3.0.4-2ubuntu2.1) ...
apparmor_parser: Unable to replace "lsb_release". Permission denied; attempted to load a profile while confined?
apparmor_parser: Unable to replace "kmod". Permission denied; attempted to load a profile while confined?
apparmor_parser: Unable to replace "nvidia_modprobe". Permission denied; attempted to load a profile while confined?
Created symlink /etc/systemd/system/sysinit.target.wants/apparmor.service -> /lib/systemd/system/apparmor.service.
Reloading AppArmor profiles
/sbin/apparmor_parser: Unable to replace "kmod". Permission denied; attempted to load a profile while confined?
/sbin/apparmor_parser: Unable to replace "nvidia_modprobe". Permission denied; attempted to load a profile while confined?
/sbin/apparmor_parser: Unable to replace "lsb_release". Permission denied; attempted to load a profile while confined?
/sbin/apparmor_parser: Unable to replace "/usr/bin/man". Permission denied; attempted to load a profile while confined?
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
/sbin/apparmor_parser: Unable to replace "tcpdump". Permission denied; attempted to load a profile while confined?
/sbin/apparmor_parser: Unable to replace "/usr/lib/NetworkManager/nm-dhcp-client.action". Permission denied; attempted to load a profile while confined?
/sbin/apparmor_parser: Unable to replace "lsb_release". Permission denied; attempted to load a profile while confined?
/sbin/apparmor_parser: Unable to replace "kmod". Permission denied; attempted to load a profile while confined?
/sbin/apparmor_parser: Unable to replace "nvidia_modprobe". Permission denied; attempted to load a profile while confined?
/sbin/apparmor_parser: Unable to replace "/usr/bin/man". Permission denied; attempted to load a profile while confined?
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
/sbin/apparmor_parser: Unable to replace "tcpdump". Permission denied; attempted to load a profile while confined?
/sbin/apparmor_parser: Unable to replace "/usr/lib/NetworkManager/nm-dhcp-client.action". Permission denied; attempted to load a profile while confined?
Error: At least one profile failed to load
Setting up apparmor-utils (3.0.4-2ubuntu2.1) ...
Processing triggers for man-db (2.10.2-1) ...
apt install apparmor apparmor-utils auditd
Can anybody please help me either to disable apparmor or to get it install correctly.
Thanks a lot
Fritz