HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

bootc switch — Target a new container image reference to boot. More information: <https://manned.org/bootc-switch>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandbootc switchnewcliimagereferencetargetcontainer
linux

Problem

How to use the bootc switch command: Target a new container image reference to boot. More information: <https://manned.org/bootc-switch>.

Solution

bootc switch — Target a new container image reference to boot. More information: <https://manned.org/bootc-switch>.

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}}

Code Snippets

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}}

Context

tldr-pages: linux/bootc switch

Revisions (0)

No revisions yet.