1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/plugin
Anusha Ragunathan 342ed107bc Embed DockerVersion in plugin config.
Embedding DockerVersion in plugin config when the plugin is created,
enables users to do a docker plugin inspect and know which version
the plugin was built on. This is helpful in cases where users are
running a new plugin on older docker releases and confused at
unexpected behavior.

By embedding DockerVersion in the config, we claim that there's no
guarantee that if the plugin config's DockerVersion is greater that
the version of the docker engine the plugin is executed against, the
plugin will work as expected.

For example, lets say:
- in 17.03, a plugin was released as johndoe/foo:v1
- in 17.05, the plugin uses the new ipchost config setting and author
publishes johndoe/foo:v2

In this case, johndoe/foo:v2 was built on 17.05 using ipchost, but is
running on docker-engine version 17.03. Since 17.05 > 17.03, there's
no guarantee that the plugin will work as expected. Ofcourse, if the
plugin did not use newly added config settings (ipchost in this case)
in 17.05, it would work fine in 17.03.

Signed-off-by: Anusha Ragunathan <anusha.ragunathan@docker.com>
2017-03-22 10:26:20 -07:00
..
v2 Add pid host support 2017-03-21 13:39:01 -07:00
backend_linux.go Embed DockerVersion in plugin config. 2017-03-22 10:26:20 -07:00
backend_unsupported.go Use distribution reference 2017-02-07 11:08:37 -08:00
blobstore.go *: use opencontainers/go-digest package 2017-01-06 18:48:41 -08:00
defs.go Implement content addressability for plugins 2016-12-23 13:29:58 -08:00
manager.go Wait to unmount propagatedmount before marking plugin as disabled. 2017-03-16 15:25:41 -07:00
manager_linux.go Net dial to the plugin socket during enable. 2017-02-27 18:11:28 -08:00
manager_solaris.go Make v2/Plugin accesses safe. 2016-12-06 13:23:41 -08:00
manager_test.go fixed:go vetting warning unkeyed fields 2017-03-20 16:30:01 +08:00
manager_windows.go Make v2/Plugin accesses safe. 2016-12-06 13:23:41 -08:00
store.go Use distribution reference 2017-02-07 11:08:37 -08:00
store_test.go fixed:go vetting warning unkeyed fields 2017-03-20 16:30:01 +08:00