FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

docker_volume

Creates and destroys a volume in Docker. This can be used alongside docker_container to prepare volumes that can be shared across containers.

Example Usage

# Creates a docker volume "shared_volume".
resource "docker_volume" "shared_volume" {
    name = "shared_volume"
}

# Reference the volume with ${docker_volume.shared_volume.name}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported in addition to the above configuration:


See the source of this document at Terraform.io