docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: unable to apply apparmor profile: apparmor failed to apply profile: write /proc/self/attr/apparmor/exec: no such file or directory: unknown.
拉源码出现了一个这样的错误,我尝试卸载 Docker 并重新安装但它不起作用,我也卸载并重新安装 apparmor 但没有任何效果
https://docs.docker.com/engine/security/apparmor/
看了文档后来发现解决方法是这样
重新配置 AppArmor
apparmor_parser -r -W /path/to/your_profile.
或者清理重新安装
sudo apt-get purge apparmor apparmor-profiles apparmor-utils
sudo apt-get install apparmor apparmor-profiles apparmor-utils
reboot