northstar icon indicating copy to clipboard operation
northstar copied to clipboard

Revisit `persist` mounts

Open flxo opened this issue 2 years ago • 1 comments

There's no update command and persist mounts should be kept across container updates. The problem is that a container update has the sequence:

  • uninstall old version
  • install new version

The runtime cannot know whether a "new version" will be installed and therefore remove the persist dir. This might be not optional because cached data in this directly can be of value for "new version".

What are the options for quotas on persist mounts?

flxo avatar Apr 08 '22 07:04 flxo

Thoughts:

Option 1: Extend api::model::Request::Uninstall with a flag that indicates whether to wipe the data or not. The runtime cannot know if there's a follow up install.

Options 2: Unpin uninstall - wipe the data dir if there's no other container with the same name (not version) present in any repository.

flxo avatar May 05 '22 11:05 flxo

Fixed by #662

flxo avatar Sep 02 '22 12:09 flxo