upgrade
action Pro Enterprise
The exegol wrapper has an upgrade
action dedicated to upgrade one or multiple containers from an outdated image to a more recent one. Installing or updating an image can be done with the install and update actions.
The principle of the upgrade function is to automate all the tasks involved in recreating a new container with a new image:
- The container will first be started, and the data listed below will be saved.
- The container will then be renamed as a backup (or deleted and all unsaved data outside the workspace will be permanently deleted).
- A new container will be created with the same configuration and the same name
- All previously saved data will be restored in the new container.
Backups
When the outdated container is kept as a backup, the original container is renamed by appending -bak
.
It will be deleted together with the new upgraded container when using the remove option.
Data transferred during upgrade
The following data will migrate to the new upgraded container:
- Your my-resources customization
- The container
/workspace
directory - The Zsh and Bash command history
- (From Exegol images
3.1.8
) The exegol-history database - The TriliumNext notes database
- The following files:
/etc/hosts
/etc/resolv.conf
/opt/tools/Exegol-history/profile.sh
- The configuration of the following tools:
Options
The options of the upgrade
action are the following.
Option | Description |
---|---|
CONTAINER | Tag used to target one or multiple (csv) Exegol containers |
--all | Select all Exegol containers available for upgrade |
--image | Upgrade the container to a different Exegol image |
--no-backup | Make no backup of the original container |
-F , --force | Upgrade container without interactive user confirmation |
Command examples
bash
# Upgrade interactively an exegol container:
exegol upgrade
# Upgrade the "ctf" container:
exegol upgrade ctf
# Upgrade every outdated container:
exegol upgrade --all
# Upgrade the "test" container to the "full" image:
exegol upgrade --image full test
# Upgrade "lab" and "test" containers without interactive user confirmation:
exegol upgrade -F lab test