github.com/kobeld/docker@v1.12.0-rc1/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            "Status": null
    37        }
    38      ]
    39  
    40      $ docker volume inspect --format '{{ .Mountpoint }}' 85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d
    41      /var/lib/docker/volumes/85bffb0677236974f93955d8ecc4df55ef5070117b0e53333cc1b443777be24d/_data
    42  
    43  ## Related information
    44  
    45  * [volume create](volume_create.md)
    46  * [volume ls](volume_ls.md)
    47  * [volume rm](volume_rm.md)
    48  * [Understand Data Volumes](../../tutorials/dockervolumes.md)