无法设置lxc.apparmor.profile。

问题描述 投票:0回答:1

我无法禁用lxc容器的apparmor。

$ lxc launch images:centos/7 a1
Creating a1
Starting a1
$ lxc config set a1 lxc.apparmor.profile unconfined
Error: Invalid config: Unknown configuration key: lxc.apparmor.profile
$ lxc --version
3.0.3

怎么了,怎么设置属性?

lxc apparmor
1个回答
0
投票

这是LXD容器的LXC设置。所以应该设置为。

lxc config set a1 raw.lxc "lxc.apparmor.profile=unconfined"

或者是第三版之前的属性

lxc config set a1 raw.lxc "lxc.aa_profile=unconfined"
© www.soinside.com 2019 - 2024. All rights reserved.