github.com/erriapo/terraform@v0.6.12-0.20160203182612-0340ea72354f/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  ```
    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  ## Argument Reference
    27  
    28  The following arguments are supported:
    29  
    30  * `name` - (Optional, string) The name of the Docker volume (generated if not
    31    provided).
    32  * `driver` - (Optional, string) Driver type for the volume (defaults to local).
    33  * `driver_opts` - (Optional, map of strings) Options specific to the driver.
    34  
    35  ## Attributes Reference
    36  
    37  The following attributes are exported in addition to the above configuration:
    38  
    39  * `mountpoint` (string) - The mountpoint of the volume.