1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/types
Brian Goff f63f73a4a8 Configure shims from runtime config
In dockerd we already have a concept of a "runtime", which specifies the
OCI runtime to use (e.g. runc).
This PR extends that config to add containerd shim configuration.
This option is only exposed within the daemon itself (cannot be
configured in daemon.json).
This is due to issues in supporting unknown shims which will require
more design work.

What this change allows us to do is keep all the runtime config in one
place.

So the default "runc" runtime will just have it's already existing shim
config codified within the runtime config alone.
I've also added 2 more "stock" runtimes which are basically runc+shimv1
and runc+shimv2.
These new runtime configurations are:

- io.containerd.runtime.v1.linux - runc + v1 shim using the V1 shim API
- io.containerd.runc.v2 - runc + shim v2

These names coincide with the actual names of the containerd shims.

This allows the user to essentially control what shim is going to be
used by either specifying these as a `--runtime` on container create or
by setting `--default-runtime` on the daemon.

For custom/user-specified runtimes, the default shim config (currently
shim v1) is used.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2020-07-13 14:18:02 -07:00
..
backend
blkiodev
container swagger: reformat, and wrap to ~80-chars 2020-05-02 18:10:28 +02:00
events
filters
image
mount
network api/types: remove errdefs dependency 2020-06-04 12:14:16 +02:00
plugins/logdriver
registry
strslice
swarm API: swarm: move PidsLimit to TaskTemplate.Resources 2020-06-05 12:50:38 +02:00
time
versions
volume swagger: reformat, and wrap to ~80-chars 2020-05-02 18:10:28 +02:00
auth.go
client.go
configs.go Accept platform spec on container create 2020-03-20 16:10:36 -07:00
error_response.go
error_response_ext.go
graph_driver_data.go
id_response.go
image_delete_response_item.go
image_summary.go
plugin.go Move plugin client creation to the extension point 2018-05-25 15:18:53 -04:00
plugin_device.go
plugin_env.go
plugin_interface_type.go
plugin_mount.go
plugin_responses.go
port.go
seccomp.go
service_update_response.go
stats.go
types.go Configure shims from runtime config 2020-07-13 14:18:02 -07:00
volume.go swagger: reformat, and wrap to ~80-chars 2020-05-02 18:10:28 +02:00