I have a load (~14) of LXD containers running on my 14.04 development machine.
I would like to do a clean install of 16.04 but I need to keep my containers.
What is the best approach to achieve this?
Should I publish the containers as images and then create new containers using those images when 16.04 is installed?
On your old Ubuntu 14.04:
Publish your Container:
Example:
Export image:
The output is something like this:
Show size of export:
Backup your export image.
Backup your containers profile/s you can show with:
You can save your *tar.gz in whatever secure place.
Install Ubuntu 16.04.2 and configure your LXD environment
Copy your backup image and, inside their directory, start import
Import your container images:
Create and start your container based on your image: