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 다시 설치
어떤 식으로든 저를 도와주실 수 있기를 바랍니다. 미리 감사드립니다!