From Fedora Project Wiki
Description
Install Fedora CoreOS and build and run containers.
Setup
- Have access to a (or install a new) FCOS instance running the next stream.
How to test
- Starting with either
podman
ordocker
, build a container from a Dockerfile. For example, you can try building coreos-assembler, which is what is used to build Fedora CoreOS itself. To do this:
git clone https://github.com/coreos/coreos-assembler cd coreos-assembler podman build -t cosa .
- Try to run the container. If you've built coreos-assembler, you can try
podman run -ti --rm cosa shell
. - If you used
podman
, repeat the steps withdocker
and vice-versa. Note that it might be easier to use a new host since there are known conflicts betweenpodman
anddocker
Expected Results
- You can build a container using both podman and docker.
- You can run a built container using podman and docker.
Optional
- If you've built coreos-assembler and you have nested KVM enabled (or you're running on bare metal), try building Fedora CoreOS with it using the steps provided here. For the
COREOS_ASSEMBLER_CONTAINER
, use the tag you've specified above when building the image, e.g.cosa
.