github.com/sld880311/docker@v0.0.0-20200524143708-d5593973a475/docs/reference/commandline/plugin_disable.md (about)

     1  ---
     2  title: "plugin disable"
     3  description: "the plugin disable command description and usage"
     4  keywords: "plugin, disable"
     5  ---
     6  
     7  <!-- This file is maintained within the docker/docker Github
     8       repository at https://github.com/docker/docker/. Make all
     9       pull requests against that repo. If you see this file in
    10       another repository, consider it read-only there, as it will
    11       periodically be overwritten by the definitive file. Pull
    12       requests which include edits to this file in other repositories
    13       will be rejected.
    14  -->
    15  
    16  # plugin disable
    17  
    18  ```markdown
    19  Usage:  docker plugin disable [OPTIONS] PLUGIN
    20  
    21  Disable a plugin
    22  
    23  Options:
    24    -f, --force   Force the disable of an active plugin
    25        --help    Print usage
    26  ```
    27  
    28  ## Description
    29  
    30  Disables a plugin. The plugin must be installed before it can be disabled,
    31  see [`docker plugin install`](plugin_install.md). Without the `-f` option,
    32  a plugin that has references (eg, volumes, networks) cannot be disabled.
    33  
    34  ## Examples
    35  
    36  The following example shows that the `sample-volume-plugin` plugin is installed
    37  and enabled:
    38  
    39  ```bash
    40  $ docker plugin ls
    41  
    42  ID                  NAME                             TAG                 DESCRIPTION                ENABLED
    43  69553ca1d123        tiborvass/sample-volume-plugin   latest              A test plugin for Docker   true
    44  ```
    45  
    46  To disable the plugin, use the following command:
    47  
    48  ```bash
    49  $ docker plugin disable tiborvass/sample-volume-plugin
    50  
    51  tiborvass/sample-volume-plugin
    52  
    53  $ docker plugin ls
    54  
    55  ID                  NAME                             TAG                 DESCRIPTION                ENABLED
    56  69553ca1d123        tiborvass/sample-volume-plugin   latest              A test plugin for Docker   false
    57  ```
    58  
    59  ## Related commands
    60  
    61  * [plugin create](plugin_create.md)
    62  * [plugin enable](plugin_enable.md)
    63  * [plugin inspect](plugin_inspect.md)
    64  * [plugin install](plugin_install.md)
    65  * [plugin ls](plugin_ls.md)
    66  * [plugin push](plugin_push.md)
    67  * [plugin rm](plugin_rm.md)
    68  * [plugin set](plugin_set.md)
    69  * [plugin upgrade](plugin_upgrade.md)