diff --git a/README.md b/README.md index c55905fb0..73bfe17d0 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,18 @@ which is used to boot. At runtime on a target system, the base userspace is *not* itself running in a container by default. For example, assuming systemd is in use, systemd acts as pid1 as usual - there's no "outer" process. +# Example + +To try bootc today run: +``` +$ truncate -s 10G test-disk.img +$ sudo losetup -Pf test-disk.img +$ LOOP=$(sudo losetup | grep test-disk.img | cut -f1 -d' ') +$ sudo podman run --rm --privileged --pid=host --security-opt label=type:unconfined_t quay.io/centos-bootc/fedora-bootc:eln bootc install to-disk --generic-machine "$LOOP" +$ qemu-system-x86_64 -m 1500 -snapshot -accel kvm -cpu host -bios /usr/share/OVMF/OVMF_CODE.fd ./test-disk.img +``` + + # More information See the [project documentation](https://containers.github.io/bootc/).