Example containers that derive from (Fedora) CoreOS

May 26, 2022 ยท View on GitHub

https://fedoraproject.org/wiki/Changes/OstreeNativeContainer and https://github.com/coreos/enhancements/blob/main/os/coreos-layering.md

are aiming to make it native to Fedora (and derivatives) to take a container build, but boot it and upgrade from it.

This repository contains example containers to demonstrate functionality.

Examples

Running an example

  • Build an image using an example from this repo and push it to an image registry:

    set IMAGE (podman build $EXAMPLE -q)
    podman push $IMAGE quay.io/$USER/$EXAMPLE
    
  • Setup a system that has rpm-ostree installed. One possibility is using virt-install.

  • Rebase the system with rpm-ostree to the image