Gets a plugin. Args: name (str): The name of the plugin. Returns: (:py:class:`Plugin`): The plugin. Raises: :py:class:`docker.errors.NotFound` If the plugin does not exist. :py:class:`docker.errors.APIErr
(self, name)
| 150 | return self.get(name) |
| 151 | |
| 152 | def get(self, name): |
| 153 | """ |
| 154 | Gets a plugin. |
| 155 | |
| 156 | Args: |
| 157 | name (str): The name of the plugin. |
| 158 | |
| 159 | Returns: |
| 160 | (:py:class:`Plugin`): The plugin. |
| 161 | |
| 162 | Raises: |
| 163 | :py:class:`docker.errors.NotFound` If the plugin does not |
| 164 | exist. |
| 165 | :py:class:`docker.errors.APIError` |
| 166 | If the server returns an error. |
| 167 | """ |
| 168 | return self.prepare_model(self.client.api.inspect_plugin(name)) |
| 169 | |
| 170 | def install(self, remote_name, local_name=None): |
| 171 | """ |