bootc-switch - Man Page
Target a new container image reference to boot
Examples (TL;DR)
- Change the base OS to a new container image from a registry:
sudo bootc switch image - Change the base OS to a new container image from the local image storage of the root user:
sudo bootc switch --transport containers-storage image - Change the base OS to a new container image stored in a tarball:
sudo bootc switch --transport oci-archive path/to/image.tar.gz
Synopsis
bootc switch [Options...] <TARGET>
Description
Target a new container image reference to boot.
This is almost exactly the same operation as upgrade, but additionally changes the container image reference instead.
Usage
A common pattern is to have a management agent control operating system updates via container image tags; for example, quay.io/exampleos/someuser:v1.0 and quay.io/exampleos/someuser:v1.1 where some machines are tracking :v1.0, and as a rollout progresses, machines can be switched to v:1.1ā.
It is also supported to provide explicit digests, via e.g. bootc switch quay.io/exampleos/someuser@sha256:9cca0703342e24806a9f64e08c053dca7f2cd90f10529af8ea872afb0a0c77d4ā. When you do this, bootc upgrade will always be a no-op. In this model, upgrades are then always triggered by further switch operations.
Applying Changes
The --apply option will automatically restart the system if it has changed after switching to the new image.
Soft Reboot
For shared --apply and --soft-reboot behavior, see Soft reboots (see bootc-upgrades(7)).
Options
TARGET
Target image to use for the next boot. Required unless `--from-downloaded` is present
--quiet
Don't display progress
--apply
Restart or reboot into the new target image
--soft-reboot=SOFT_REBOOT
Configure soft reboot behavior Possible values: - required - auto
--transport=TRANSPORT
The transport; e.g. registry, oci, oci-archive, docker-daemon, containers-storage. Defaults to `registry` Default: registry
--download-only
Download and stage the update without applying it
--from-downloaded
Apply a staged deployment that was previously downloaded with --download-only
--enforce-container-sigpolicy
This is the inverse of the previous `--target-no-signature-verification` (which is now a no-op)
--retain
Retain reference to currently booted image
Examples
Switch to a different image version:
bootc switch quay.io/exampleos/myapp:v1.1
Switch and immediately apply the changes:
bootc switch --apply quay.io/exampleos/myapp:v1.1
Switch with soft reboot if possible:
bootc switch --apply --soft-reboot=auto quay.io/exampleos/myapp:v1.1
See Also
bootc(8), bootc-upgrade(8), bootc-status(8), bootc-rollback(8)
Version
v1.17.1