moby/plugin
Yong Tang d0fb24d853 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>
(cherry picked from commit 662d456928)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
2016-11-29 14:06:04 -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-29 14:06:04 -08:00
v2 plugins: misc fixes 2016-11-22 16:16:39 -08:00
backend_linux.go Fix issue caused by duplicate docker plugin create with same names 2016-11-29 14:06:04 -08:00
backend_unsupported.go Add HTTP client timeout. 2016-11-22 11:23:20 -08:00
manager.go Fix issue caused by duplicate docker plugin create with same names 2016-11-29 14:06:04 -08:00
manager_linux.go Add HTTP client timeout. 2016-11-22 11:23:20 -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