docker plugin ls (original) (raw)
Description | List plugins |
---|---|
Usage | docker plugin ls [OPTIONS] |
AliasesAn alias is a short or memorable alternative for a longer command. | docker plugin list |
Lists all the plugins that are currently installed. You can install plugins using thedocker plugin install command. You can also filter using the -f
or --filter
flag. Refer to thefiltering section for more information about available filter options.
Option | Default | Description |
---|---|---|
-f, --filter | Provide filter values (e.g. enabled=true) | |
--format | 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 tohttps://docs.docker.com/go/formatting/ for more information about formatting output with templates | |
--no-trunc | Don't truncate output | |
-q, --quiet | Only display plugin IDs |
Filtering (--filter)
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)
- capability (string - currently
volumedriver
,networkdriver
,ipamdriver
,logdriver
,metricscollector
, orauthz
)
enabled
The enabled
filter matches on plugins enabled or disabled.
capability
The capability
filter matches on plugin capabilities. One plugin might have multiple capabilities. Currently volumedriver
, networkdriver
,ipamdriver
, logdriver
, metricscollector
, and authz
are supported capabilities.
Format the output (--format)
The formatting options (--format
) pretty-prints plugins output using a Go template.
Valid placeholders for the Go template are listed below:
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 |
When using the --format
option, the plugin ls
command will either output the data exactly as the template declares or, when using thetable
directive, includes column headers as well.
The following example uses a template without headers and outputs theID
and Name
entries separated by a colon (:
) for all plugins:
To list all plugins in JSON format, use the json
directive: