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
Vincent Demeester
eb5fe064cf
Fixes some integration-cli on userns
...
Mainly adding requirements on Network or NotUserNamespace to make it pass.
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-11-23 14:03:53 +01:00
Tibor Vass
a08ffa0e93
plugins: fix some tests
...
Signed-off-by: Tibor Vass <tibor@docker.com>
2016-11-21 16:34:10 -08:00
Tonis Tiigi
e23e36f25c
Skip plugin tests if not in amd64
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2016-11-11 09:52:13 -08:00
Victor Vieux
c410222e42
move plugins out of experimental
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2016-11-10 15:51:32 -08:00
Victor Vieux
49ca91fbeb
rename plugin manifest
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2016-11-10 00:09:23 -08:00
Victor Vieux
4b63ad33ec
Merge pull request #28086 from vieux/delete_rootfs_plugin
...
delete plugin rootfs on `docker plugin rm`
2016-11-08 17:03:01 -08:00
Victor Vieux
586b7cc19e
delete plugin rootfs on plugin rm
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2016-11-08 03:30:37 -08:00
Victor Vieux
69276fddf8
support settings in docker plugins install
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2016-11-07 22:49:22 -08:00
Victor Vieux
efbed4500e
support env for docker plugin set
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2016-11-07 16:59:29 -08:00
Victor Vieux
7236e42046
add test plugin install --disable and volume ls
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2016-11-02 17:03:46 -07:00
Tonis Tiigi
da9ef68f06
Add requirements for tests that require network
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2016-10-12 11:11:23 -07:00
Victor Vieux
b22d07f515
add check plugin is not used before rm
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2016-09-15 13:50:57 -07:00
Victor Vieux
63a19edcb1
add -f to plugin inspect
...
Signed-off-by: Victor Vieux <vieux@docker.com>
Signed-off-by: Victor Vieux <vieux@docker.com>
2016-08-25 22:40:05 -07:00
Victor Vieux
cf4e268115
replace active by enabled for consistency in plugins
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2016-08-25 20:42:49 -07:00
Victor Vieux
0016b331da
Add --force to docker plugin remove
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2016-08-04 15:55:45 -07:00
Anusha Ragunathan
5690730a74
Remove plugin root from filesystem.
...
`docker plugin remove` didnt actually remove plugin from disk. Fix that.
Signed-off-by: Anusha Ragunathan <anusha@docker.com>
2016-08-01 10:46:50 -07:00
Anusha Ragunathan
b867f6c6e1
Check for plugin state before enable and disable.
...
This prevents unnecessary API call to containerd.
Signed-off-by: Anusha Ragunathan <anusha@docker.com>
2016-07-25 19:24:28 -07:00
Anusha Ragunathan
6dca1e6d3f
Print plugin name on successful install, enable and disable.
...
Signed-off-by: Anusha Ragunathan <anusha@docker.com>
2016-07-18 09:47:12 -07:00
Anusha Ragunathan
d32df6d934
Detect non-plugin content during install and error out.
...
Signed-off-by: Anusha Ragunathan <anusha@docker.com>
2016-07-06 18:49:39 -07:00
Tibor Vass
4b70d4561e
plugins: install should not automatically accept all permissions
...
Signed-off-by: Tibor Vass <tibor@docker.com>
2016-06-17 10:03:30 -07:00
Anusha Ragunathan
22e781e8e3
Add disable flag for plugin Install.
...
Signed-off-by: Anusha Ragunathan <anusha@docker.com>
2016-06-17 07:48:43 -07:00
Anusha Ragunathan
a2d48c9e4e
Add basic integration tests for plugins.
...
Signed-off-by: Anusha Ragunathan <anusha@docker.com>
2016-06-15 15:19:19 -07:00