MCPcopy Index your code
hub / github.com/docker/docker-py / remove_plugin

Method remove_plugin

docker/api/plugin.py:209–225  ·  view source on GitHub ↗

Remove an installed plugin. Args: name (string): Name of the plugin to remove. The ``:latest`` tag is optional, and is the default if omitted. force (bool): Disable the plugin before removing. This may

(self, name, force=False)

Source from the content-addressed store, hash-verified

207 @utils.minimum_version('1.25')
208 @utils.check_resource('name')
209 def remove_plugin(self, name, force=False):
210 """
211 Remove an installed plugin.
212
213 Args:
214 name (string): Name of the plugin to remove. The ``:latest``
215 tag is optional, and is the default if omitted.
216 force (bool): Disable the plugin before removing. This may
217 result in issues if the plugin is in use by a container.
218
219 Returns:
220 ``True`` if successful
221 """
222 url = self._url('/plugins/{0}', name)
223 res = self._delete(url, params={'force': force})
224 self._raise_for_status(res)
225 return True
226
227 @utils.minimum_version('1.26')
228 @utils.check_resource('name')

Callers 6

teardown_classMethod · 0.80
teardown_methodMethod · 0.80
test_remove_pluginMethod · 0.80
test_install_pluginMethod · 0.80
removeMethod · 0.80

Calls 3

_urlMethod · 0.80
_deleteMethod · 0.80
_raise_for_statusMethod · 0.80

Tested by 5

teardown_classMethod · 0.64
teardown_methodMethod · 0.64
test_remove_pluginMethod · 0.64
test_install_pluginMethod · 0.64