How make OCI Container(APP) persistens like LXC Container

Hi,

so far I understand, running a OCI image in Incus is, converting it to a lxc Container add all the missing stuff and start it.
In OCI world the image is not changeable and all data at runtime are temporary and this is the use case.
In Container world I it is different, every change is persisted.
I could like to use a OCI image as starting point and then work with it like a regular container, all the changes should be persisted.

66

Is there a simple way to achieve this goal?

Hi :slight_smile:

as long as you don’t remove the container it is persistent same with docker.

While this is not what OCI containers are ment for it works.

After your done with changes you can clone / export / import the container as you wish.

And of course, you can always do what you’d do in the docker world: if the OCI image persists its state under /data (say), then you can create an incus storage volume and mount it at /data before starting it. That would allow you to destroy and recreate the container from a new OCI image should you so wish.