2016-11-09 17:49:09 -08:00
|
|
|
# plugin disable
|
2016-06-09 23:57:15 +02:00
|
|
|
|
2023-01-06 19:04:05 +01:00
|
|
|
<!---MARKER_GEN_START-->
|
2016-07-07 20:43:18 +02:00
|
|
|
Disable a plugin
|
2016-06-09 23:57:15 +02:00
|
|
|
|
2023-01-06 19:04:05 +01:00
|
|
|
### Options
|
|
|
|
|
2024-07-03 08:29:57 +02:00
|
|
|
| Name | Type | Default | Description |
|
|
|
|
|:----------------|:-------|:--------|:--------------------------------------|
|
|
|
|
| `-f`, `--force` | `bool` | | Force the disable of an active plugin |
|
2023-01-06 19:04:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
<!---MARKER_GEN_END-->
|
2016-06-09 23:57:15 +02:00
|
|
|
|
2017-02-07 15:42:48 -08:00
|
|
|
## Description
|
|
|
|
|
2016-06-09 23:57:15 +02:00
|
|
|
Disables a plugin. The plugin must be installed before it can be disabled,
|
2016-12-20 08:26:58 -08:00
|
|
|
see [`docker plugin install`](plugin_install.md). Without the `-f` option,
|
2017-04-28 05:24:49 +08:00
|
|
|
a plugin that has references (e.g., volumes, networks) cannot be disabled.
|
2016-06-09 23:57:15 +02:00
|
|
|
|
2017-02-07 15:42:48 -08:00
|
|
|
## Examples
|
2016-06-09 23:57:15 +02:00
|
|
|
|
2016-12-14 00:35:34 -08:00
|
|
|
The following example shows that the `sample-volume-plugin` plugin is installed
|
2016-08-04 16:19:46 -07:00
|
|
|
and enabled:
|
2016-06-09 23:57:15 +02:00
|
|
|
|
2021-08-21 14:54:14 +02:00
|
|
|
```console
|
2016-06-09 23:57:15 +02:00
|
|
|
$ docker plugin ls
|
2016-07-20 23:37:55 +02:00
|
|
|
|
2020-06-18 16:37:36 +02:00
|
|
|
ID NAME DESCRIPTION ENABLED
|
|
|
|
69553ca1d123 tiborvass/sample-volume-plugin:latest A test plugin for Docker true
|
2016-06-09 23:57:15 +02:00
|
|
|
```
|
2016-07-20 23:37:55 +02:00
|
|
|
|
2016-06-09 23:57:15 +02:00
|
|
|
To disable the plugin, use the following command:
|
|
|
|
|
2021-08-21 14:54:14 +02:00
|
|
|
```console
|
2016-12-14 00:35:34 -08:00
|
|
|
$ docker plugin disable tiborvass/sample-volume-plugin
|
2016-07-20 23:37:55 +02:00
|
|
|
|
2016-12-14 00:35:34 -08:00
|
|
|
tiborvass/sample-volume-plugin
|
2016-06-09 23:57:15 +02:00
|
|
|
|
|
|
|
$ docker plugin ls
|
2016-07-20 23:37:55 +02:00
|
|
|
|
2020-06-18 16:37:36 +02:00
|
|
|
ID NAME DESCRIPTION ENABLED
|
|
|
|
69553ca1d123 tiborvass/sample-volume-plugin:latest A test plugin for Docker false
|
2016-06-09 23:57:15 +02:00
|
|
|
```
|
|
|
|
|
2017-02-07 15:42:48 -08:00
|
|
|
## Related commands
|
2016-06-09 23:57:15 +02:00
|
|
|
|
2016-10-04 12:01:19 -07:00
|
|
|
* [plugin create](plugin_create.md)
|
2016-06-09 23:57:15 +02:00
|
|
|
* [plugin enable](plugin_enable.md)
|
|
|
|
* [plugin inspect](plugin_inspect.md)
|
|
|
|
* [plugin install](plugin_install.md)
|
2016-11-14 08:38:06 -08:00
|
|
|
* [plugin ls](plugin_ls.md)
|
|
|
|
* [plugin push](plugin_push.md)
|
2016-06-09 23:57:15 +02:00
|
|
|
* [plugin rm](plugin_rm.md)
|
2016-10-31 17:07:05 -07:00
|
|
|
* [plugin set](plugin_set.md)
|
2017-01-28 16:54:32 -08:00
|
|
|
* [plugin upgrade](plugin_upgrade.md)
|