Description:"`docker_image` provides details about a specific Docker Image which need to be presend on the Docker Host",
ReadContext:dataSourceDockerImageRead,
Schema:map[string]*schema.Schema{
"name":{
Type:schema.TypeString,
Description:"The name of the Docker image, including any tags or SHA256 repo digests.",
Required:true,
},
"repo_digest":{
Type:schema.TypeString,
Description:"The image sha256 digest in the form of `repo[:tag]@sha256:<hash>`. It may be empty in the edge case where the local image was pulled from a repo, tagged locally, and then referred to in the data source by that local name/tag.",
// another edge case where the image was pulled from somewhere, pushed somewhere else,
// but the tag being referenced in the data is that local-only tag
log.Printf("[WARN] could not determine repo digest for image name '%s' and repo digests: %v. Will fall back to '%s'",imageName,imageToQuery.RepoDigests,imageToQuery.RepoDigests[0])