github.com/sijibomii/docker@v0.0.0-20231230191044-5cf6ca554647/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 Return low-level information on a volume 16 17 -f, --format= Format the output using the given go template. 18 --help 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 22 given template 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 41 42 ## Related information 43 44 * [volume create](volume_create.md) 45 * [volume ls](volume_ls.md) 46 * [volume rm](volume_rm.md) 47 * [Understand Data Volumes](../../userguide/containers/dockervolumes.md)