For both commands, volume is _not_ optional. Several volumes may be specified. Both commands now use the same name (VOLUME) for the command argument. Signed-off-by: Harald Albers <github@albersweb.de> Upstream-commit: 00eaa7e1f53d9100e95af80d8a05f8e77e380464 Component: engine
1.3 KiB
1.3 KiB
volume inspect
Usage: docker volume inspect [OPTIONS] VOLUME [VOLUME...]
Inspect one or more volumes
-f, --format= Format the output using the given go template.
Returns information about a volume. By default, this command renders all results in a JSON array. You can specify an alternate format to execute a given template is executed for each result. Go's text/template package describes all the details of the format.
Example output:
$ docker volume create
85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d
$ docker volume inspect 85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d
[
{
"Name": "85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d",
"Driver": "local",
"Mountpoint": "/var/lib/docker/volumes/85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d/_data"
}
]
$ docker volume inspect --format '{{ .Mountpoint }}' 85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d
"/var/lib/docker/volumes/85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d/_data"