Ejemplo de Imagen Bootc de Fedora IoT con Máquina Podman
This example walks through building and booting a Fedora IoT bootc image in a Podman machine.
| This example is based on the Fedora bootcdocumentation about building scratch images; reference the upstream docs here for the latest version/information. | 
Para comenzar, cree un Containerfile.custom con el contenido siguiente:
FROM quay.io/fedora-testing/fedora-bootc:rawhide-standard como constructor
RUN /usr/libexec/bootc-base-imagectl build-rootfs --manifest=fedora-iot /target-rootfs
FROM scratch
COPY --from=builder /target-rootfs/ /
LABEL containers.bootc 1
ENV container=oci
STOPSIGNAL SIGRTMIN+3
CMD ["/sbin/init"]Initialize your Podman machine using the following command. You may skip this step if you already have a Podman machine.
inicio de máquina podmanGrant your Podman machine the permissions necessary to run your Fedora IoT bootc image using:
podman machine set --rootfulStart your Podman machine using:
podman machine startUtilice la siguiente instrucción para crear la imagen fedora-iot:
podman -c podman-machine-default-root build --cap-add=all --security-opt=label=disable \
--device /dev/fuse -t localhost/fedora-iot -f Containerfile.custom .Tras construir la imagen localhost/fedora-iot, sería capaz de verlo en su lisado de máquina Podman de imágenes. Utilice las instrucciones siguientes para comprobar:
podman -c raíz-predet-maquina-podman imágenes| El siguiente paso utiliza podman-bootc. Si necesita instalarpodman-bootc, por favor siga las instrucciones en el repositorio podman-bootc | 
You’re now ready to boot a virtual machine using your new Fedora IoT bootc image. The command below will boot a VM in your current terminal window, allowing you to test everything that Fedora IoT bootc images have to offer:
podman-bootc run --filesystem=ext4 localhost/fedora-iotWant to help? Learn how to contribute to Fedora Docs ›