Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn the users during the installation process that Application Updates remove unrelated containers from the system #7

Open
leograba opened this issue Sep 20, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@leograba
Copy link
Member

Background

A user reported this after testing on a NVIDIA Jetson Orin, but the use case may also apply to anyone who has Docker pre-installed on their system.

After an Application Update, docker system prune -a --force is run (at least according to https://developer.toradex.com/torizon/torizon-platform/torizon-updates/torizon-updates-technical-overview/#identifying-unsuccessful-container-updates), and this removes all container images that are not actively used, whereas a reasonable expectation would be that Application Updates only touch the Docker resources it needs.

Goal

Effectively warn users that Application Updates will remove Docker resources not referenced by the Docker Compose file of the Application Updates and explicitly ask them to acknowledge it:

This installer performs Application Updates which run the command `docker system prune -a --force`.
This leads to Docker images and containers permanent data loss without user confirmation.
By proceeding, you accept this condition and acknowledge the risk of permanent data loss.
Proceed (y/N)
@leograba leograba added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant