Lxd: Question: How to convert an privileged container into an privileged one?

Created on 30 Nov 2016  路  3Comments  路  Source: lxc/lxd

Hi,
I麓m about to migrate all lxc (privileged) containers to lxd. Thanks to @stgraber this works well.
As I use lxc since the (almost) beginning, all containers created by lxc were privileged as they are after I migrate them to lxd. Is there a way to convert them into unprivileged ones?
Thank you

Most helpful comment

lxc config set $CONTAINER_NAME security.privileged false or maybe just lxc config unset $CONTAINER_NAME security.privileged. And then restart the container.

Can you show the output of lxc config show $CONTAINER_NAME for one of those imported containers?

All 3 comments

lxc config set $CONTAINER_NAME security.privileged false or maybe just lxc config unset $CONTAINER_NAME security.privileged. And then restart the container.

Can you show the output of lxc config show $CONTAINER_NAME for one of those imported containers?

@brauner this is great! I changed the config lxc config set $CONTAINER_NAME security.privileged false and it worked. All uid/gid of the container are set properly.
Thank you!

Ok, closing this then. :)

Was this page helpful?
0 / 5 - 0 ratings