Loading... # 0x0 问题 报错类似: ``` AppArmor enabled on system but the docker-default profile could not be loaded: running `/usr/sbin/apparmor_parser apparmor_parser ``` # 0x1 解决 在lxc的配置文件添加: ``` lxc.apparmor.profile = unconfined ``` 添加后重启lxc docker运行参数添加: ``` --security-opt apparmor=unconfined ``` 如果是以docker-compose,添加: ```yaml services: your_service: security_opt: - apparmor=unconfined ``` Last modification:February 24, 2023 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 1 如果觉得我的文章对你有用,请随意赞赏
One comment
[...]Cheers!2. 特权 LXC 下启用非特权 docker 报错ref: https://rehtt.com/index.php/archives/259/LXC 配置加入lxc.apparmor.profile = unconfineddocker 参数加入--security-opt apparmor=unconfinedorservices:[...]