github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/docker/r/volume.html.markdown (about)

     1  ---
     2  layout: "docker"
     3  page_title: "Docker: docker_volume"
     4  sidebar_current: "docs-docker-resource-volume"
     5  description: |-
     6    Creates and destroys docker volumes.
     7  ---
     8  
     9  # docker\_volume
    10  
    11  Creates and destroys a volume in Docker. This can be used alongside
    12  [docker\_container](/docs/providers/docker/r/container.html)
    13  to prepare volumes that can be shared across containers.
    14  
    15  ## Example Usage
    16  
    17  ```hcl
    18  # Creates a docker volume "shared_volume".
    19  resource "docker_volume" "shared_volume" {
    20    name = "shared_volume"
    21  }
    22  
    23  # Reference the volume with ${docker_volume.shared_volume.name}
    24  
    25  ```
    26  
    27  ## Argument Reference
    28  
    29  The following arguments are supported:
    30  
    31  * `name` - (Optional, string) The name of the Docker volume (generated if not
    32    provided).
    33  * `driver` - (Optional, string) Driver type for the volume (defaults to local).
    34  * `driver_opts` - (Optional, map of strings) Options specific to the driver.
    35  
    36  ## Attributes Reference
    37  
    38  The following attributes are exported in addition to the above configuration:
    39  
    40  * `mountpoint` (string) - The mountpoint of the volume.