github.com/robertojrojas/docker@v1.9.1/docs/reference/commandline/volume_inspect.md (about) 1 <!--[metadata]> 2 +++ 3 title = "volume inspect" 4 description = "The volume inspect command description and usage" 5 keywords = ["volume, inspect"] 6 [menu.main] 7 parent = "smn_cli" 8 +++ 9 <![end-metadata]--> 10 11 # volume inspect 12 13 Usage: docker volume inspect [OPTIONS] VOLUME [VOLUME...] 14 15 Inspect one or more volumes 16 17 -f, --format= Format the output using the given go template. 18 --help=false Print usage 19 20 Returns information about a volume. By default, this command renders all results 21 in a JSON array. You can specify an alternate format to execute a given template 22 is executed for each result. Go's 23 [text/template](http://golang.org/pkg/text/template/) package describes all the 24 details of the format. 25 26 Example output: 27 28 $ docker volume create 29 85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d 30 $ docker volume inspect 85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d 31 [ 32 { 33 "Name": "85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d", 34 "Driver": "local", 35 "Mountpoint": "/var/lib/docker/volumes/85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d/_data" 36 } 37 ] 38 39 $ docker volume inspect --format '{{ .Mountpoint }}' 85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d 40 /var/lib/docker/volumes/85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d/_data