moby--moby/plugin
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
..
distribution update media_type 2016-11-10 15:51:32 -08:00
store Fix issue caused by duplicate `docker plugin create` with same names 2016-11-28 12:37:49 -08:00
v2 Merge pull request #28601 from tiborvass/plugin-misc-fixes 2016-11-22 16:12:37 -08:00
backend_linux.go Fix issue caused by duplicate `docker plugin create` with same names 2016-11-28 12:37:49 -08:00
backend_unsupported.go Add HTTP client timeout. 2016-11-21 13:11:40 -08:00
manager.go Fix issue caused by duplicate `docker plugin create` with same names 2016-11-28 12:37:49 -08:00
manager_linux.go Add HTTP client timeout. 2016-11-21 13:11:40 -08:00
manager_solaris.go Add functional support for Docker sub commands on Solaris 2016-11-07 09:06:34 -08:00
manager_windows.go Make experimental a runtime flag 2016-10-24 15:20:01 -07:00