Stop and remove ephemeral OCI when rebooting host

Still experimenting with the OCI app containers. When I stop an ephemeral OCI container with “Incus stop XXX” everything works as expected, container is stopped and deleted. This does not happen when I reboot.

I tried “boot.host_shutdown_action: force-stop” in the profile, but it does nothing. Instance still exist after reboot. Any tips?

Ephemeral instances only get deleted when they are stopped “naturally”, that is, either incus stop or poweroff being called from inside the instance.

Anything else, whether it’s server evacuation, shutdown, cluster healing, … is considered to be an uncontrolled stop of the instance, so it will be started back up and not get deleted.

Ok, thanks! I guess I will have to solve this with scripts.