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

Method disable

docker/models/plugins.py:47–60  ·  view source on GitHub ↗

Disable the plugin. Args: force (bool): Force disable. Default: False Raises: :py:class:`docker.errors.APIError` If the server returns an error.

(self, force=False)

Source from the content-addressed store, hash-verified

45 self.reload()
46
47 def disable(self, force=False):
48 """
49 Disable the plugin.
50
51 Args:
52 force (bool): Force disable. Default: False
53
54 Raises:
55 :py:class:`docker.errors.APIError`
56 If the server returns an error.
57 """
58
59 self.client.api.disable_plugin(self.name, force)
60 self.reload()
61
62 def enable(self, timeout=0):
63 """

Callers

nothing calls this directly

Calls 2

disable_pluginMethod · 0.80
reloadMethod · 0.45

Tested by

no test coverage detected