github.com/pwn-term/docker@v0.0.0-20210616085119-6e977cce2565/cli/docs/reference/commandline/volume_inspect.md (about) 1 --- 2 title: "volume inspect" 3 description: "The volume inspect command description and usage" 4 keywords: "volume, inspect" 5 --- 6 7 # volume inspect 8 9 ```markdown 10 Usage: docker volume inspect [OPTIONS] VOLUME [VOLUME...] 11 12 Display detailed information on one or more volumes 13 14 Options: 15 -f, --format string Format the output using the given Go template 16 --help Print usage 17 ``` 18 19 ## Description 20 21 Returns information about a volume. By default, this command renders all results 22 in a JSON array. You can specify an alternate format to execute a 23 given template for each result. Go's 24 [text/template](http://golang.org/pkg/text/template/) package describes all the 25 details of the format. 26 27 ## Examples 28 29 ```bash 30 $ docker volume create myvolume 31 32 myvolume 33 ``` 34 35 Use the `docker volume inspect` comment to inspect the configuration of the volume: 36 37 ```bash 38 $ docker volume inspect myvolume 39 ``` 40 41 The output is in JSON format, for example: 42 43 ```json 44 [ 45 { 46 "CreatedAt": "2020-04-19T11:00:21Z", 47 "Driver": "local", 48 "Labels": {}, 49 "Mountpoint": "/var/lib/docker/volumes/8140a838303144125b4f54653b47ede0486282c623c3551fbc7f390cdc3e9cf5/_data", 50 "Name": "myvolume", 51 "Options": {}, 52 "Scope": "local" 53 } 54 ] 55 ``` 56 Use the `--format` flag to format the output using a Go template, for example, 57 to print the `Mountpoint` property: 58 59 ```bash 60 $ docker volume inspect --format '{{ .Mountpoint }}' myvolume 61 62 /var/lib/docker/volumes/myvolume/_data 63 ``` 64 65 ## Related commands 66 67 * [volume create](volume_create.md) 68 * [volume ls](volume_ls.md) 69 * [volume rm](volume_rm.md) 70 * [volume prune](volume_prune.md) 71 * [Understand Data Volumes](https://docs.docker.com/storage/volumes/)