github.com/olljanat/moby@v1.13.1/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  <!-- This file is maintained within the docker/docker Github
     8       repository at https://github.com/docker/docker/. Make all
     9       pull requests against that repo. If you see this file in
    10       another repository, consider it read-only there, as it will
    11       periodically be overwritten by the definitive file. Pull
    12       requests which include edits to this file in other repositories
    13       will be rejected.
    14  -->
    15  
    16  # volume inspect
    17  
    18  ```markdown
    19  Usage:  docker volume inspect [OPTIONS] VOLUME [VOLUME...]
    20  
    21  Display detailed information on one or more volumes
    22  
    23  Options:
    24    -f, --format string   Format the output using the given Go template
    25        --help            Print usage
    26  ```
    27  
    28  Returns information about a volume. By default, this command renders all results
    29  in a JSON array. You can specify an alternate format to execute a
    30  given template for each result. Go's
    31  [text/template](http://golang.org/pkg/text/template/) package describes all the
    32  details of the format.
    33  
    34  Example output:
    35  
    36      $ docker volume create
    37      85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d
    38      $ docker volume inspect 85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d
    39      [
    40        {
    41            "Name": "85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d",
    42            "Driver": "local",
    43            "Mountpoint": "/var/lib/docker/volumes/85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d/_data",
    44            "Status": null
    45        }
    46      ]
    47  
    48      {% raw %}
    49      $ docker volume inspect --format '{{ .Mountpoint }}' 85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d
    50      /var/lib/docker/volumes/85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d/_data
    51      {% endraw %}
    52  
    53  ## Related information
    54  
    55  * [volume create](volume_create.md)
    56  * [volume ls](volume_ls.md)
    57  * [volume rm](volume_rm.md)
    58  * [volume prune](volume_prune.md)
    59  * [Understand Data Volumes](https://docs.docker.com/engine/tutorials/dockervolumes/)