Default security.idmap.isolated=true

Hi all,
I do not seem to be able to find a way to set security.idmap.isolated=true
as the default for all containers.
I have tried:

lxc config set security.idmap.isolated true

The answer I get is:

Error: cannot set 'security.idmap.isolated' to 'true': unknown key

What I want to is to set security.idmap.isolated=true as deafult for all containers.
So when you launch a container with:

lxc launch images:debian/10

The container should be launched with security.idmap.isolated=true
and you do not have to remember to set it manually.

Is there a way to achieve this?

Many thanks in advance!!

Best regards

You would enable it in the default profile, so:

lxc profile set default security.idmap.isolated true

Works perfectly!!

1 Like