github.com/AliyunContainerService/cli@v0.0.0-20181009023821-814ced4b30d0/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/cli GitHub
     8       repository at https://github.com/docker/cli/. 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  ## Description
    29  
    30  Returns information about a volume. By default, this command renders all results
    31  in a JSON array. You can specify an alternate format to execute a
    32  given template for each result. Go's
    33  [text/template](http://golang.org/pkg/text/template/) package describes all the
    34  details of the format.
    35  
    36  ## Examples
    37  
    38  ```bash
    39  $ docker volume create
    40  85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d
    41  $ docker volume inspect 85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d
    42  [
    43    {
    44        "Name": "85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d",
    45        "Driver": "local",
    46        "Mountpoint": "/var/lib/docker/volumes/85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d/_data",
    47        "Status": null
    48    }
    49  ]
    50  
    51  $ docker volume inspect --format '{{ .Mountpoint }}' 85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d
    52  /var/lib/docker/volumes/85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d/_data
    53  ```
    54  
    55  ## Related commands
    56  
    57  * [volume create](volume_create.md)
    58  * [volume ls](volume_ls.md)
    59  * [volume rm](volume_rm.md)
    60  * [volume prune](volume_prune.md)
    61  * [Understand Data Volumes](https://docs.docker.com/engine/tutorials/dockervolumes/)