mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2025-12-24 00:29:46 -05:00
* feat: Remove deprecated docker_container attributes. * feat: Remove deprecated docker_service atttribute. * feat: Remove deprecated `build` attribute from docker_registry_image. * feat: Remove deprecated attributes of docker_image. * docs: Generate and update documentation. * fix: Add MigrateState for docker_container again. * docs: Fix docs linting errors. * docs: Fix tf formatting in docs.
1.6 KiB
1.6 KiB
| page_title | subcategory | description |
|---|---|---|
| Resource docker_registry_image - terraform-provider-docker | Manages the lifecycle of docker image in a registry. You can upload images to a registry (= docker push) and also delete them again |
Resource (docker_registry_image)
Manages the lifecycle of docker image in a registry. You can upload images to a registry (= docker push) and also delete them again
Example Usage
Build an image with the docker_image resource and then push it to a registry:
resource "docker_registry_image" "helloworld" {
name = docker_image.image.name
keep_remotely = true
}
resource "docker_image" "image" {
name = "registry.com/somename:1.0"
build {
context = "${path.cwd}/absolutePathToContextFolder"
}
}
Schema
Required
name(String) The name of the Docker image.
Optional
insecure_skip_verify(Boolean) Iftrue, the verification of TLS certificates of the server/registry is disabled. Defaults tofalsekeep_remotely(Boolean) If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker registry on destroy operation. Defaults tofalsetriggers(Map of String) A map of arbitrary strings that, when changed, will force thedocker_registry_imageresource to be replaced. This can be used to repush a local image
Read-Only
id(String) The ID of this resource.sha256_digest(String) The sha256 digest of the image.