diff --git a/d/registry_image.html.markdown b/d/registry_image.html.markdown index ca364f4b..9ec58362 100644 --- a/d/registry_image.html.markdown +++ b/d/registry_image.html.markdown @@ -18,12 +18,12 @@ to date on the latest available version of the tag. ``` data "docker_registry_image" "ubuntu" { - name = "ubuntu:precise" + name = "ubuntu:precise" } resource "docker_image" "ubuntu" { - name = "${data.docker_registry_image.ubuntu.name}" - pull_triggers = ["${data.docker_registry_image.ubuntu.sha256_digest}"] + name = "${data.docker_registry_image.ubuntu.name}" + pull_triggers = ["${data.docker_registry_image.ubuntu.sha256_digest}"] } ``` diff --git a/index.html.markdown b/index.html.markdown index f16a04f1..50f4071a 100644 --- a/index.html.markdown +++ b/index.html.markdown @@ -27,17 +27,17 @@ is a Docker feature missing, please report it in the GitHub repo. ``` # Configure the Docker provider provider "docker" { - host = "tcp://127.0.0.1:2376/" + host = "tcp://127.0.0.1:2376/" } # Create a container resource "docker_container" "foo" { - image = "${docker_image.ubuntu.latest}" - name = "foo" + image = "${docker_image.ubuntu.latest}" + name = "foo" } resource "docker_image" "ubuntu" { - name = "ubuntu:latest" + name = "ubuntu:latest" } ``` diff --git a/r/container.html.markdown b/r/container.html.markdown index 0774edb4..77783a90 100644 --- a/r/container.html.markdown +++ b/r/container.html.markdown @@ -15,7 +15,7 @@ Manages the lifecycle of a Docker container. ``` # Start a container resource "docker_container" "ubuntu" { - name = "foo" + name = "foo" image = "${docker_image.ubuntu.latest}" } diff --git a/r/image.html.markdown b/r/image.html.markdown index 5dff59fb..2520ce3a 100644 --- a/r/image.html.markdown +++ b/r/image.html.markdown @@ -21,22 +21,23 @@ data source to update the `pull_triggers` field. ``` # Find the latest Ubuntu precise image. resource "docker_image" "ubuntu" { - name = "ubuntu:precise" + name = "ubuntu:precise" } # Access it somewhere else with ${docker_image.ubuntu.latest} + ``` ### Dynamic image ``` data "docker_registry_image" "ubuntu" { - name = "ubuntu:precise" + name = "ubuntu:precise" } resource "docker_image" "ubuntu" { - name = "${data.docker_registry_image.ubuntu.name}" - pull_triggers = ["${data.docker_registry_image.ubuntu.sha256_digest}"] + name = "${data.docker_registry_image.ubuntu.name}" + pull_triggers = ["${data.docker_registry_image.ubuntu.sha256_digest}"] } ``` diff --git a/r/network.html.markdown b/r/network.html.markdown index 164548b6..d931e0b4 100644 --- a/r/network.html.markdown +++ b/r/network.html.markdown @@ -17,10 +17,11 @@ to create virtual networks within the docker environment. ``` # Find the latest Ubuntu precise image. resource "docker_network" "private_network" { - name = "my_network" + name = "my_network" } # Access it somewhere else with ${docker_network.private_network.name} + ``` ## Argument Reference diff --git a/r/volume.html.markdown b/r/volume.html.markdown index f19d4019..e9a31d36 100644 --- a/r/volume.html.markdown +++ b/r/volume.html.markdown @@ -17,10 +17,11 @@ to prepare volumes that can be shared across containers. ``` # Creates a docker volume "shared_volume". resource "docker_volume" "shared_volume" { - name = "shared_volume" + name = "shared_volume" } # Reference the volume with ${docker_volume.shared_volume.name} + ``` ## Argument Reference