From Fedora Project Wiki
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
|actions= | |actions= | ||
<ol> | |||
<li>Using `podman`, build `fcct` from a Dockerfile, which is the tool you've used to convert FCCs to Ignition configs. To do this: | |||
<pre> | <pre> | ||
git clone https://github.com/coreos/fcct | git clone https://github.com/coreos/fcct | ||
Line 11: | Line 12: | ||
podman build -t fcct . | podman build -t fcct . | ||
</pre> | </pre> | ||
<li> Try running the container, e.g. `podman run -ti --rm fcct --help`. | |||
<li> Now, use `docker` to build the container. Note that it might be easier to use a new host since there are [https://docs.fedoraproject.org/en-US/fedora-coreos/faq/#_can_i_run_containers_via_docker_and_podman_at_the_same_time known conflicts between `podman` and `docker`]: | |||
<pre> | <pre> | ||
git clone https://github.com/coreos/fcct | git clone https://github.com/coreos/fcct | ||
Line 18: | Line 19: | ||
docker build -t fcct . | docker build -t fcct . | ||
</pre> | </pre> | ||
<li> Try running the container, e.g. `docker run -ti --rm fcct --help`. | |||
</ol> | |||
|results= | |results= |
Revision as of 19:07, 5 June 2020
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
- Using
podman
, buildfcct
from a Dockerfile, which is the tool you've used to convert FCCs to Ignition configs. To do this:git clone https://github.com/coreos/fcct cd fcct podman build -t fcct .
- Try running the container, e.g.
podman run -ti --rm fcct --help
. - Now, use
docker
to build the container. Note that it might be easier to use a new host since there are known conflicts betweenpodman
anddocker
:git clone https://github.com/coreos/fcct cd fcct docker build -t fcct .
- Try running the container, e.g.
docker run -ti --rm fcct --help
.
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're familiar with other containerized software, try building and running them too.