moby/vendor
Cory Snider 547da0d575 daemon: support other containerd runtimes (MVP)
Contrary to popular belief, the OCI Runtime specification does not
specify the command-line API for runtimes. Looking at containerd's
architecture from the lens of the OCI Runtime spec, the _shim_ is the
OCI Runtime and runC is "just" an implementation detail of the
io.containerd.runc.v2 runtime. When one configures a non-default runtime
in Docker, what they're really doing is instructing Docker to create
containers using the io.containerd.runc.v2 runtime with a configuration
option telling the runtime that the runC binary is at some non-default
path. Consequently, only OCI runtimes which are compatible with the
io.containerd.runc.v2 shim, such as crun, can be used in this manner.
Other OCI runtimes, including kata-containers v2, come with their own
containerd shim and are not compatible with io.containerd.runc.v2.
As Docker has not historically provided a way to select a non-default
runtime which requires its own shim, runtimes such as kata-containers v2
could not be used with Docker.

Allow other containerd shims to be used with Docker; no daemon
configuration required. If the daemon is instructed to create a
container with a runtime name which does not match any of the configured
or stock runtimes, it passes the name along to containerd verbatim. A
user can start a container with the kata-containers runtime, for
example, simply by calling

    docker run --runtime io.containerd.kata.v2

Runtime names which containerd would interpret as a path to an arbitrary
binary are disallowed. While handy for development and testing it is not
strictly necessary and would allow anyone with Engine API access to
trivially execute any binary on the host as root, so we have decided it
would be safest for our users if it was not allowed.

It is not yet possible to set an alternative containerd shim as the
default runtime; it can only be configured per-container.

Signed-off-by: Cory Snider <csnider@mirantis.com>
2022-07-27 14:22:49 -04:00
..
cloud.google.com/go Bump swarmkit to v2 2022-04-21 17:33:07 -04:00
code.cloudfoundry.org/clock bump docker/swarmkit 59163bf75df38489d4a10392265d27156dc473c5 2019-04-15 18:04:36 +02:00
github.com daemon: support other containerd runtimes (MVP) 2022-07-27 14:22:49 -04:00
go.etcd.io vendor: github.com/docker/swarmkit 616e8db4c3b0 2022-03-10 17:48:09 -05:00
go.opencensus.io vendor: go.opencensus.io v0.23.0 2022-06-29 16:41:12 +02:00
go.opentelemetry.io vendor buildkit v0.10.0 2022-03-22 18:51:27 +01:00
go.uber.org vendor: github.com/docker/swarmkit 616e8db4c3b0 2022-03-10 17:48:09 -05:00
golang.org/x vendor: golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a 2022-06-27 10:21:35 +02:00
google.golang.org vendor buildkit 8d45bd6 that fixes dockerd worker integration tests 2022-03-23 16:07:04 +01:00
gotest.tools/v3 vendor: gotest.tools v3.2.0 2022-05-28 12:18:22 +02:00
modules.txt daemon: support other containerd runtimes (MVP) 2022-07-27 14:22:49 -04:00