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

Method enable

docker/models/plugins.py:62–74  ·  view source on GitHub ↗

Enable the plugin. Args: timeout (int): Timeout in seconds. Default: 0 Raises: :py:class:`docker.errors.APIError` If the server returns an error.

(self, timeout=0)

Source from the content-addressed store, hash-verified

60 self.reload()
61
62 def enable(self, timeout=0):
63 """
64 Enable the plugin.
65
66 Args:
67 timeout (int): Timeout in seconds. Default: 0
68
69 Raises:
70 :py:class:`docker.errors.APIError`
71 If the server returns an error.
72 """
73 self.client.api.enable_plugin(self.name, timeout)
74 self.reload()
75
76 def push(self):
77 """

Callers

nothing calls this directly

Calls 2

enable_pluginMethod · 0.80
reloadMethod · 0.45

Tested by

no test coverage detected