c3d / podman

Podman: A tool for managing OCI containers and pods.
https://podman.io
Apache License 2.0
0 stars 0 forks source link

Planned sequence of events #1

Open c3d opened 4 months ago

c3d commented 4 months ago

The c3d/podman repository is a fork of containers/podman focusing on bringing back compatibility with shimv2 runtimes such as Kata Containers

Background

The shimV2 interface works very differently compared to the usual OCI command-line interface used by runc or crun.

An attempt to isolate podman from the underlying differences by inserting an intermediary tool that would perform the translation was attempted, with a tool called ociplex. This proved difficult, in no small part because what podman calls an "OCI runtime" internally hard-codes a conmon interface. This interface is quite specific with respect to what it expects from the underlying container, and podman is also specific with respect to what it expects from conmon.

This kind of hard-coded behaviors makes it hard in practice for ociplex to masquerade as conmon as seen by podman and as containerd as seen by the shimv2 runtime. Some changes on the podman side appeared indispensable, e.g. so that podman could call an alternate conmon binary (ociplex in our case).

Since changing podman appears inevitable, it might be better to do it the right way. However, "the right way" remains complicated. Since this might end up being a large undertaking, this repository will contain a separate set of issues so as not to pollute the main podman repository. This will allow me to document the changes I'm doing publicly instead of in private notes.

Overall sequence of events

In order for podman to properly communicate with a shimv2 runtime, it needs to behave in a way that is closer to what happens under Kubernetes through containerd or crio.

The sequence of events in that case is the following:

By default, the podman server will use the following addresses:

grpcAddress = /run/podman/podman.sock
ttrpcAddress = /run/podman/podman.sock.ttrpc
github-actions[bot] commented 3 months ago

A friendly reminder that this issue had no activity for 30 days.