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 Add stats options to not prime the stats 2020-02-28 09:54:37 -08:00
blkiodev Add canonical import comment 2018-02-05 16:51:57 -05:00
container swagger: reformat, and wrap to ~80-chars 2020-05-02 18:10:28 +02:00
events Add canonical import comment 2018-02-05 16:51:57 -05:00
filters bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
image api/types: re-generate with new template 2019-11-05 11:32:41 -08:00
mount mount: add BindOptions.NonRecursive (API v1.40) 2018-11-06 17:51:58 +09:00
network api/types: remove errdefs dependency 2020-06-04 12:14:16 +02:00
plugins/logdriver Add partial log metadata to log driver proto 2018-08-10 20:44:30 -07:00
registry goimports: fix imports 2019-09-18 12:56:54 +02:00
strslice Format code with gofmt -s from go-1.11beta1 2018-09-06 15:24:16 -07:00
swarm API: swarm: move PidsLimit to TaskTemplate.Resources 2020-06-05 12:50:38 +02:00
time Improve GetTimestamp parsing 2018-05-20 13:07:17 +02:00
versions Add canonical import comment 2018-02-05 16:51:57 -05:00
volume swagger: reformat, and wrap to ~80-chars 2020-05-02 18:10:28 +02:00
auth.go Add canonical import comment 2018-02-05 16:51:57 -05:00
client.go Exec inspect field should be "ID" not "ExecID" 2020-02-10 14:08:54 -08:00
configs.go Accept platform spec on container create 2020-03-20 16:10:36 -07:00
error_response.go Update to inline comments. 2016-10-31 11:13:41 -04:00
error_response_ext.go Make ErrorResponse implement Error 2019-07-02 10:17:03 -07:00
graph_driver_data.go Generate GraphDriver from spec, and fix up image spec. 2017-01-03 11:47:47 -05:00
id_response.go Add an IDResponse type 2016-10-31 11:16:02 -04:00
image_delete_response_item.go Generate ImageDeleteResponse from swagger spec. 2017-01-03 11:47:47 -05:00
image_summary.go Generate api/types:Image from the swagger spec 2016-10-20 13:24:23 -07:00
plugin.go Move plugin client creation to the extension point 2018-05-25 15:18:53 -04:00
plugin_device.go Generate plugin types from the swagger spec. 2016-10-20 13:24:23 -07:00
plugin_env.go Generate plugin types from the swagger spec. 2016-10-20 13:24:23 -07:00
plugin_interface_type.go Generate plugin types from the swagger spec. 2016-10-20 13:24:23 -07:00
plugin_mount.go Generate plugin types from the swagger spec. 2016-10-20 13:24:23 -07:00
plugin_responses.go Add canonical import comment 2018-02-05 16:51:57 -05:00
port.go Describe IP field of Port definition 2018-05-15 12:09:42 +02:00
seccomp.go seccomp: allow ptrace for 4.8+ kernels 2018-11-04 13:06:43 -08:00
service_update_response.go Return warnings from service create and service update when digest pinning fails 2016-11-18 09:31:31 -08:00
stats.go Fix dont typo 2018-09-08 16:58:03 +08:00
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