docker.image

Image is responsible for pulling Docker images. It assumes that there is already a Docker daemon running on the system.

Example

docker.image "busybox" {
  name               = "busybox"
  tag                = "latest"
  inactivity_timeout = "60s"
}

Parameters

  • name (required string)

name of the image to pull

  • tag (string)

tag of the image to pull. default: latest

  • inactivity_timeout (duration)

the amount of time to wait after a period of inactivity. The timeout is reset each time new data arrives.

Acceptable formats are a number in seconds or a duration string. A Duration represents the elapsed time between two instants as an int64 second count. The representation limits the largest representable duration to approximately 290 years. A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as “300ms”, “-1.5h” or “2h45m”. Valid time units are “ns”, “us” (or “┬Ás”), “ms”, “s”, “m”, “h”.