2015-06-12 13:25:32 +00:00
|
|
|
<!--[metadata]>
|
|
|
|
+++
|
|
|
|
title = "volume inspect"
|
|
|
|
description = "The volume inspect command description and usage"
|
|
|
|
keywords = ["volume, inspect"]
|
|
|
|
[menu.main]
|
|
|
|
parent = "smn_cli"
|
|
|
|
+++
|
|
|
|
<![end-metadata]-->
|
|
|
|
|
|
|
|
# volume inspect
|
|
|
|
|
2016-07-07 18:43:18 +00:00
|
|
|
```markdown
|
|
|
|
Usage: docker volume inspect [OPTIONS] VOLUME [VOLUME...]
|
2015-06-12 13:25:32 +00:00
|
|
|
|
2016-07-07 18:43:18 +00:00
|
|
|
Display detailed information on one or more volumes
|
2015-06-12 13:25:32 +00:00
|
|
|
|
2016-07-07 18:43:18 +00:00
|
|
|
Options:
|
|
|
|
-f, --format string Format the output using the given go template
|
|
|
|
--help Print usage
|
|
|
|
```
|
2015-06-12 13:25:32 +00:00
|
|
|
|
|
|
|
Returns information about a volume. By default, this command renders all results
|
2015-11-18 15:02:24 +00:00
|
|
|
in a JSON array. You can specify an alternate format to execute a
|
|
|
|
given template for each result. Go's
|
2015-06-12 13:25:32 +00:00
|
|
|
[text/template](http://golang.org/pkg/text/template/) package describes all the
|
|
|
|
details of the format.
|
|
|
|
|
|
|
|
Example output:
|
|
|
|
|
|
|
|
$ docker volume create
|
|
|
|
85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d
|
|
|
|
$ docker volume inspect 85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"Name": "85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d",
|
|
|
|
"Driver": "local",
|
2016-03-07 20:44:43 +00:00
|
|
|
"Mountpoint": "/var/lib/docker/volumes/85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d/_data",
|
|
|
|
"Status": null
|
2015-06-12 13:25:32 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
$ docker volume inspect --format '{{ .Mountpoint }}' 85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d
|
2015-11-09 08:17:50 +00:00
|
|
|
/var/lib/docker/volumes/85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d/_data
|
2016-02-18 19:52:15 +00:00
|
|
|
|
|
|
|
## Related information
|
|
|
|
|
|
|
|
* [volume create](volume_create.md)
|
|
|
|
* [volume ls](volume_ls.md)
|
|
|
|
* [volume rm](volume_rm.md)
|
2016-06-13 18:08:11 +00:00
|
|
|
* [Understand Data Volumes](../../tutorials/dockervolumes.md)
|