Hi,
I was wondering if this scenario would be possible with LXD and ZFS (dataset)
- Create container cont-A (version 001)
- Create a volume data voldata-A
- Attach volume voldata-A to cont-A (mount point inside container /voldata )
As I understood, LXD will take care of UID/GID mapping . ( Mounting ZFS datasets to containers )
But once I have this setup working, with datas, can I do this :
- Stop container cont-A
- Detach volume voldata-A from cont-A (not sure if that’s possible with “lxc storage xxx”
- Delete container cont-A
- Clone container TEMPLATE-v002 to container cont-A (version 002)
- Attach volume voldata-A to cont-A (mount point inside container /voldata )
- Start container
This way, I could manage my images, and just “switch” the container core system without touching my datas
Will LXD allow me this scenario without any conflicts on UID/GID inside the container ?
Thanks !