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

[Question] Is there a need to re-pull and recreate toolbox images periodically? #114

Closed
abceleung opened this issue Jan 4, 2024 · 1 comment

Comments

@abceleung
Copy link

Hi, I want to use the Debian Sid toolbox image with Distrobox.
Since Sid is a rolling release distro, running apt update && apt upgrade should be enough to keep the container updated, right? Is there any benefit to re-pulling and recreating the image?
Also, in case of non-rolling distro images like Debian Stable, what is the best way to upgrade from one release to another: performing the upgrade inside the container or re-pull and recreate?

@travier
Copy link
Member

travier commented Jan 8, 2024

In general, when you update in place, the image gets bigger on the disk as the new files from updated packages are added to the container.

If you re-pull and re-create from an updated image then you will use less storage but will "waste" network bandwitdh. Both options work.

It's up to you to decide what's the best for you.

@travier travier closed this as completed Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants