terraform-provider-docker/docs/data-sources/registry_image.md
renovate[bot] c33013cf0c
chore(deps): update actions/checkout action to v5 (#768)
* chore(deps): update actions/checkout action to v5

* chore: Update docs

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Martin Wentzel <nitram.wentzel@gmail.com>
2025-08-12 16:29:43 +02:00

1.4 KiB

page_title subcategory description
docker_registry_image Data Source - terraform-provider-docker Reads the image metadata from a Docker Registry. Used in conjunction with the docker_image ../resources/image.md resource to keep an image up to date on the latest available version of the tag.

docker_registry_image (Data Source)

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.

Example Usage

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]
}

Schema

Required

  • name (String) The name of the Docker image, including any tags. e.g. alpine:latest. You can also specify a digest, e.g. nginx:1.28.0@sha256:eaa7e36decc3421fc04478c586dfea0d931cebe47d5bc0b15d758a32ba51126f.

Optional

  • insecure_skip_verify (Boolean) If true, the verification of TLS certificates of the server/registry is disabled. Defaults to false

Read-Only

  • id (String) The ID of this resource.
  • sha256_digest (String) The content digest of the image, as stored in the registry.