Docker 容器由于 apparmor 无法启动,为什么?
Docker container cannot start due to apparmor, why?
我全新安装了 ubuntu 18.04。唯一安装的程序是 docker.
但是如果我尝试 运行 hello-world 容器来测试安装,运行 失败:
docker: Error response from daemon: AppArmor enabled on system but the docker-default profile could not be loaded: running `/sbin/apparmor_parser apparmor_parser -Kr /var/lib/docker/tmp/docker-default847992402` failed with output: apparmor_parser: Unable to replace "docker-default". Permission denied; attempted to load a profile while confined?
error: exit status 243.
ERRO[0000] error waiting for container: context canceled
系统上没有安装 apparmor 配置文件:
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.
如何安装配置文件?并修复错误?
我正在尝试 运行:
sudo docker run hello-world
我通过以下方式安装了 docker:
sudo apt install docker.io
系统是 Ubuntu 18.04 LXC vserver
乔纳斯
为了 运行 docker 在 LXC 虚拟服务器上正常运行,在虚拟服务器外的 LXC 配置中有一些设置需要更改。就我而言,我必须在我的托管帐户的仪表板上启用 docker 支持。
我全新安装了 ubuntu 18.04。唯一安装的程序是 docker.
但是如果我尝试 运行 hello-world 容器来测试安装,运行 失败:
docker: Error response from daemon: AppArmor enabled on system but the docker-default profile could not be loaded: running `/sbin/apparmor_parser apparmor_parser -Kr /var/lib/docker/tmp/docker-default847992402` failed with output: apparmor_parser: Unable to replace "docker-default". Permission denied; attempted to load a profile while confined?
error: exit status 243.
ERRO[0000] error waiting for container: context canceled
系统上没有安装 apparmor 配置文件:
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.
如何安装配置文件?并修复错误?
我正在尝试 运行:
sudo docker run hello-world
我通过以下方式安装了 docker:
sudo apt install docker.io
系统是 Ubuntu 18.04 LXC vserver
乔纳斯
为了 运行 docker 在 LXC 虚拟服务器上正常运行,在虚拟服务器外的 LXC 配置中有一些设置需要更改。就我而言,我必须在我的托管帐户的仪表板上启用 docker 支持。