Modify daily image prune command to use the filter option to filter for `org.label-schema.vendor="Nextcloud"` with the update to nc32
Is your feature request related to a problem? Please describe.
Well, I’m frustrated to randomly discover that Nextcloud AiO seems to regularly run docker image prune and therefore also deletes dangling images from services which have nothing to do with Nextcloud. I have not found any mention about this feature in the documentation.
Describe the solution you'd like
Please describe this in the official setup documentations (i.e. in the blog and in the README), and make it painfully obvious. E.g. introduce a section stating possible incompatibilities when deploying Nextcloud AiO together with other services on the same system / VM.
Describe alternatives you've considered
Either disabling that feature by default, but this would be a bad for people which are using Nextcloud AiO exclusively on its own system.
Or restrict docker image prune to only affect Nextcloud AiO, but I know that this would also be complex to do, and has the potential for missing out images in either direction.
Additional context
I understand the reasoning, esp. when Nextcloud AiO is alone on a machine. But I consider this a really bad practice to just do that without describing it in the docs, as the docs also does not mention that Nextcloud AiO should be deployed on its own VM. And esp. because this has the chance of destroying caches or somewhat important data (e.g. previous versions of containers, which could be there to rollback. Or cached images, which are used in regular docker run calls or used by a CI builder).
Hi, you are the first that runs into problems with this or reports this. I had a fast look at https://docs.docker.com/reference/cli/docker/image/prune/#options and I think we could add the filter option to the command after adding a common tag to the containers. I will look into this.
The label will be added via https://github.com/nextcloud/all-in-one/pull/6423. Then in a few months, maybe with the update to nc32 we can add a filter to the prune command.
Todo: also add the same label to as many as possible community containers
This is now released with v12.0.0 Beta. Testing and feedback is welcome! See https://github.com/nextcloud/all-in-one#how-to-switch-the-channel