Convert privileged to unprivileged container


I’ve got a series of containers running Debian 9.1 (they were created and started with root). Could you point me to some modern resources on how to convert them to unprivileged containers ?

Thank you in advance :slight_smile:


With regular LXC (as opposed to through LXD), you have to remap the filesystem by hand.
You could grab our “fuidshift” tool from the LXD tree which will let you specify a source and destination map, remapping your filesystem tree.

If you have golang on your system, you can build it with:

go get -v -x