Docker容器由于出现故障而无法启动,为什么



我有一个新安装的ubuntu 18.04。唯一安装的程序是docker。

但是,如果我尝试运行helloworld容器来测试安装,则运行失败:

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

该系统是在LXC vserver 上的Ubuntu 18.04

乔纳斯

要在LXC vServer上正确运行docker,需要在vServer之外的LXC配置中更改一些设置。在我的情况下,我必须在我的托管帐户的仪表板上启用docker支持。

相关内容

  • 没有找到相关文章