forked from containers/bootc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start breaking up the big index doc. Signed-off-by: Colin Walters <[email protected]>
- Loading branch information
Showing
2 changed files
with
74 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
--- | ||
nav_order: 5 | ||
--- | ||
|
||
# Relationship with other projects | ||
|
||
## Relationship with podman | ||
|
||
It gets a bit confusing to talk about shipping bootable operating systems in container images. | ||
Again, to be clear: we are reusing container images as: | ||
|
||
- A build mechanism (including running *as* a standard OCI container image) | ||
- A transport mechanism | ||
|
||
But, actually when a bootc container is booted, podman (or docker, etc.) is not involved. | ||
The storage used for the operating system content is distinct from `/var/lib/containers`. | ||
`podman image prune --all` will not delete your operating system. | ||
|
||
That said, a toplevel goal of bootc is alignment with the https://github.com/containers ecosystem, | ||
which includes podman. But more specifically at a technical level, today bootc uses | ||
[skopeo](https://github.com/containers/skopeo/) and hence indirectly [containers/image](https://github.com/containers/image) | ||
as a way to fetch container images. | ||
|
||
This means that bootc automatically also honors many of the knobs available in `/etc/containers` - specifically | ||
things like [containers-registries.conf](https://github.com/containers/image/blob/main/docs/containers-registries.conf.5.md). | ||
|
||
In other words, if you configure `podman` to pull images from your local mirror registry, then `bootc` will automatically honor that as well. | ||
|
||
The simple way to say it is: A goal of `bootc` is to be the bootable-container analogue for `podman`, which runs application containers. Everywhere one might run `podman`, one could also consider using `bootc`. | ||
|
||
## Relationship with Kubernetes | ||
|
||
Just as `podman` does not depend on a Kubernetes API server, `bootc` will also not depend on one. | ||
|
||
However, there are also plans for `bootc` to also understand Kubernetes API types. See [configmap/secret support](https://github.com/containers/bootc/issues/22) for example. | ||
|
||
Perhaps in the future we may actually support some kind of `Pod` analogue for representing the host state. Or we may define a [CRD](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/) which can be used inside and outside of Kubernetes. | ||
|
||
## Relationship with rpm-ostree | ||
|
||
Today rpm-ostree directly links to `ostree-rs-ext`, and hence | ||
gains all the same container functionality. This will likely | ||
continue. For example, with rpm-ostree (or, perhaps re-framed as | ||
"dnf image"), it will continue to work to e.g. `dnf install` | ||
(i.e. `rpm-ostree install`) on the *client side* system. However, `bootc upgrade` would | ||
(should) then error out as it will not understand how to upgrade | ||
the system. | ||
|
||
rpm-ostree also has significant other features such as | ||
`rpm-ostree kargs` etc. | ||
|
||
Overall, rpm-ostree is used in several important projects | ||
and will continue to be maintained for many years to come. | ||
|
||
However, for use cases which want a "pure" image based model, | ||
using `bootc` will be more appealing. bootc also does not | ||
e.g. drag in dependencies on `libdnf` and the RPM stack. | ||
|
||
bootc also has the benefit of starting as a pure Rust project; | ||
and while it [doesn't have an IPC mechanism today](https://github.com/containers/bootc/issues/4), the surface | ||
of such an API will be significantly smaller. | ||
|
||
Further, bootc does aim to [include some of the functionality of zincati](https://github.com/containers/bootc/issues/5). | ||
|
||
But all this said: *It will be supported to use both bootc and rpm-ostree together*; they are not exclusive. | ||
For example, `bootc status` at least will still function even if packages are layered. | ||
|
||
## Relationship with Fedora CoreOS (and Silverblue, etc.) | ||
|
||
Per above, it is a toplevel goal to support a seamless, transactional update from existing OSTree based systems, which includes these Fedora derivatives. | ||
|
||
For Fedora CoreOS specifically, see [this tracker issue](https://github.com/coreos/fedora-coreos-tracker/issues/1446). | ||
|
||
See also [OstreeNativeContainerStable](https://fedoraproject.org/wiki/Changes/OstreeNativeContainerStable). |