3 Terraform
Hunter Long edited this page 2019-05-02 16:41:43 -07:00
Terraform with Statping Docker Image

provider "docker" {
  host = "tcp://127.0.0.1:2376/"
}

# Create a container
resource "docker_container" "statping" {
  image = "${docker_image.statping.latest}"
  name  = "statping"
}

resource "docker_image" "statping" {
  name = "statping:latest"
}