2016-10-14 15:30:36 -07:00
---
title: "plugin ls"
description: "The plugin ls command description and usage"
2016-11-03 15:48:30 -07:00
keywords: "plugin, list"
2016-10-14 15:30:36 -07:00
---
2016-06-09 23:57:15 +02:00
2016-11-09 17:49:09 -08:00
# plugin ls
2016-06-09 23:57:15 +02:00
2016-07-07 20:43:18 +02:00
```markdown
2016-08-31 14:18:41 +08:00
Usage: docker plugin ls [OPTIONS]
2016-06-09 23:57:15 +02:00
2016-07-07 20:43:18 +02:00
List plugins
2016-06-09 23:57:15 +02:00
2016-07-07 20:43:18 +02:00
Aliases:
ls, list
2016-06-09 23:57:15 +02:00
2016-07-07 20:43:18 +02:00
Options:
2016-11-23 04:58:15 -08:00
-f, --filter filter Provide filter values (e.g. 'enabled=true')
2021-03-10 00:49:33 +01:00
--format string Format output using a custom template:
'table': Print output in table format with column headers (default)
'table TEMPLATE': Print output in table format using the given Go template
'json': Print in JSON format
'TEMPLATE': Print output using the given Go template.
Refer to https://docs.docker.com/go/formatting/ for more information about formatting output with templates
2016-11-22 16:23:21 -08:00
--help Print usage
--no-trunc Don't truncate output
-q, --quiet Only display plugin IDs
2016-07-07 20:43:18 +02:00
```
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
Lists all the plugins that are currently installed. You can install plugins
using the [`docker plugin install` ](plugin_install.md ) command.
2016-11-23 04:58:15 -08:00
You can also filter using the `-f` or `--filter` flag.
2023-01-06 18:05:02 +01:00
Refer to the [filtering ](#filter ) section for more information about available filter options.
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
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
```
2022-03-30 15:05:29 +02:00
### <a name=format></a> Filtering (--filter)
2016-11-23 04:58:15 -08:00
The filtering flag (`-f` or `--filter` ) format is of "key=value". If there is more
than one filter, then pass multiple flags (e.g., `--filter "foo=bar" --filter "bif=baz"` )
The currently supported filters are:
* enabled (boolean - true or false, 0 or 1)
2017-04-13 21:56:50 -04:00
* capability (string - currently `volumedriver` , `networkdriver` , `ipamdriver` , `logdriver` , `metricscollector` , or `authz` )
2016-11-23 04:58:15 -08:00
2017-02-07 15:42:48 -08:00
#### enabled
2016-11-23 04:58:15 -08:00
The `enabled` filter matches on plugins enabled or disabled.
2017-02-07 15:42:48 -08:00
#### capability
2016-11-23 05:27:09 -08:00
The `capability` filter matches on plugin capabilities. One plugin
might have multiple capabilities. Currently `volumedriver` , `networkdriver` ,
2017-04-13 21:56:50 -04:00
`ipamdriver` , `logdriver` , `metricscollector` , and `authz` are supported capabilities.
2016-11-23 05:27:09 -08:00
2021-08-21 14:54:14 +02:00
```console
2017-08-07 11:04:05 +02:00
$ docker plugin install --disable vieux/sshfs
2017-02-07 15:42:48 -08:00
2017-08-07 11:04:05 +02:00
Installed plugin vieux/sshfs
2016-11-23 05:27:09 -08:00
$ docker plugin ls --filter enabled=true
2017-02-07 15:42:48 -08:00
2020-06-18 16:37:36 +02:00
ID NAME DESCRIPTION ENABLED
2016-11-23 05:27:09 -08:00
```
2022-03-30 15:05:29 +02:00
### <a name=format></a> Format the output (--format)
2016-11-22 16:23:21 -08:00
The formatting options (`--format` ) pretty-prints plugins output
using a Go template.
Valid placeholders for the Go template are listed below:
2022-03-30 14:33:44 +02:00
| Placeholder | Description |
|--------------------|-------------------------------------------------|
| `.ID` | Plugin ID |
| `.Name` | Plugin name and tag |
| `.Description` | Plugin description |
| `.Enabled` | Whether plugin is enabled or not |
| `.PluginReference` | The reference used to push/pull from a registry |
2016-11-22 16:23:21 -08:00
When using the `--format` option, the `plugin ls` command will either
output the data exactly as the template declares or, when using the
`table` directive, includes column headers as well.
The following example uses a template without headers and outputs the
2020-04-19 17:23:09 +02:00
`ID` and `Name` entries separated by a colon (`:` ) for all plugins:
2016-11-22 16:23:21 -08:00
2021-08-21 14:54:14 +02:00
```console
2016-11-22 16:23:21 -08:00
$ docker plugin ls --format "{{.ID}}: {{.Name}}"
2017-02-07 15:42:48 -08:00
2017-08-07 11:04:05 +02:00
4be01827a72e: vieux/sshfs:latest
2016-11-22 16:23:21 -08:00
```
2021-03-10 00:49:33 +01:00
To list all plugins in JSON format, use the `json` directive:
```console
$ docker plugin ls --format json
{"Description":"sshFS plugin for Docker","Enabled":false,"ID":"856d89febb1c","Name":"vieux/sshfs:latest","PluginReference":"docker.io/vieux/sshfs:latest"}
```
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 disable ](plugin_disable.md )
2016-11-14 08:38:06 -08:00
* [plugin enable ](plugin_enable.md )
2016-06-09 23:57:15 +02:00
* [plugin inspect ](plugin_inspect.md )
* [plugin install ](plugin_install.md )
2016-11-14 08:38:06 -08:00
* [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 )