Ubuntu 20.04を実行しているVPSでdocker-composeファイルを実行しようとしていますが、AppArmorの使用に問題があります。次のエラーがあります。
systemctl status apparmor
● apparmor.service - Load AppArmor profiles
Loaded: loaded (/lib/systemd/system/apparmor.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2023-02-27 10:56:35 UTC; 1h 19min ago
Docs: man:apparmor(7)
https://gitlab.com/apparmor/apparmor/wikis/home/
Process: 78 ExecStart=/lib/apparmor/apparmor.systemd reload (code=exited, status=1/FAILURE)
Main PID: 78 (code=exited, status=1/FAILURE)
Feb 27 10:56:34 vps-zap468762-3 apparmor.systemd[241]: /sbin/apparmor_parser: Unable to replace "nscd". Permission denied; attempted to load a profile while confined?
Feb 27 10:56:35 vps-zap468762-3 apparmor.systemd[245]: /sbin/apparmor_parser: Unable to replace "smbd". Permission denied; attempted to load a profile while confined?
Feb 27 10:56:35 vps-zap468762-3 apparmor.systemd[249]: /sbin/apparmor_parser: Unable to replace "/usr/sbin/tcpdump". Permission denied; attempted to load a profile while confine>
Feb 27 10:56:35 vps-zap468762-3 apparmor.systemd[247]: /sbin/apparmor_parser: Unable to replace "/etc/init.d/nscd". Permission denied; attempted to load a profile while confined?
Feb 27 10:56:35 vps-zap468762-3 apparmor.systemd[247]: /sbin/apparmor_parser: Unable to replace "smbldap-useradd". Permission denied; attempted to load a profile while confined?
Feb 27 10:56:35 vps-zap468762-3 apparmor.systemd[251]: /sbin/apparmor_parser: Unable to replace "traceroute". Permission denied; attempted to load a profile while confined?
Feb 27 10:56:35 vps-zap468762-3 apparmor.systemd[78]: Error: At least one profile failed to load
Feb 27 10:56:35 vps-zap468762-3 systemd[1]: apparmor.service: Main process exited, code=exited, status=1/FAILURE
Feb 27 10:56:35 vps-zap468762-3 systemd[1]: apparmor.service: Failed with result 'exit-code'.
Feb 27 10:56:35 vps-zap468762-3 systemd[1]: Failed to start Load AppArmor profiles.
コマンドを実行してもdocker-compose up
同じエラーが発生します。 aa-statusはロードされた設定ファイル0を返します。
apparmor module is loaded.
0 profiles are loaded.
0 profiles are in enforce mode.
0 profiles are in complain mode.
0 processes have profiles defined.
0 processes are in enforce mode.
0 processes are in complain mode.
0 processes are unconfined but have a profile defined.
私は努力しました:
- Dockerとdocker-composeを再インストールしてください。
- apparmorとapparmor-utilsの再インストール
どんな方法でも私を助けることができることを願っています。よろしくお願いします!