Reads the image metadata from a Docker Registry. Used in conjunction with the docker_image resource to keep an image up to date on the latest available version of the tag.
data "docker_registry_image" "ubuntu" { name = "ubuntu:precise" } resource "docker_image" "ubuntu" { name = "${data.docker_registry_image.ubuntu.name}" pull_triggers = ["${data.docker_registry_image.ubuntu.sha256_digest}"] }
The following arguments are supported:
name
- (Required, string) The name of the Docker image, including any tags. e.g. alpine:latest
The following attributes are exported in addition to the above configuration:
sha256_digest
(string) - The content digest of the image, as stored on the registry.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/docker/d/registry_image.html