Open sanderson opened 7 years ago
Part of the reason that image caches grow is because when a data component is provisioned, we use the current version of the image. When a new image is available, we can't re-provision the data component because it would wipe the data, so the old out-dated image has to be kept around. We need to provide a way to migrate data from containers using old images to containers using new images:
nanobox image migrate
This is going to migrate all data from containers using old images
to new containers using updated images. This process may take a while.
Would you like to proceed? (Y/n)
We may even want to run a nanobox image update
before the migration and a nanobox image prune
after.
I've run into a few issues with my image cache:
I think we need to provide a way to manage the image cache. Maybe even an
image
command with subcommands. Possibly something like: