89luca89 / distrobox

Use any linux distribution inside your terminal. Enable both backward and forward compatibility with software and freedom to use whatever distribution you’re more comfortable with. Mirror available at: https://gitlab.com/89luca89/distrobox
https://distrobox.it/
GNU General Public License v3.0
10.12k stars 418 forks source link

Migrating current distrobox docker container to latest tag images without losing modifications made in current distrobox container. #1523

Open braindotai opened 2 months ago

braindotai commented 2 months ago

Is your feature request related to a problem? Please describe.

I am not too sure if what I am thinking of is necessary or if it makes much sense, but would like to get your opinions on it.

Lets say I have distrobox image with a "latest" tag and its container with my modifications, I installed bunch of stuff in this container and exported bunch of binaries and apps to my host. When we do distrobox-upgrade, that upgrades the current running containers with their package manager.

Now, if I upgrade my current distrobox image, that will replace the "latest" tag from the current image with "none" and it will pull another image the "latest" tag.

So now I have two images, one with image tag "none" and another one with "latest".

Question 1: Is distrobox-upgrade enough to get the latest necessary updates? Question 2: How to migrate my current "heavily modified" container to this new "latest" tag image (I want all my previously exported binaries and apps to run fine as they were running previously)? Is it possible? Is it necessary/suggested?

89luca89 commented 1 month ago

Ideally one should have a distrobox.ini that defines the container so that upgrading is only a "recreate"