moby--moby/plugin/store
Yong Tang 662d456928 Fix issue caused by duplicate `docker plugin create` with same names
This fix tries to fix the issue raised in 28684:
1. Duplicate plugin create with the same name will override the old plugin reference
2. In case an error happens in the middle of the plugin creation, plugin directories
   in `/var/lib/docker/plugins` are not cleaned up.

This fix update the plugin store so that `Add()` will return an error if a plugin
with the same name already exist.

This fix also will clean up the directory in `/var/lib/docker/plugins` in case
an error happens in the middle of the plugin creation.

This fix fixes 28684.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-11-28 12:37:49 -08:00
..
defs.go Allow plugins to have multiple handlers 2016-10-17 09:00:17 -07:00
store.go Fix issue caused by duplicate `docker plugin create` with same names 2016-11-28 12:37:49 -08:00
store_test.go rename plugin manifest 2016-11-10 00:09:23 -08:00