RemoteImageState constructor
Creates a new RemoteImageState.
build Configuration to build an image. Requires the Use containerd for pulling and storing images option to be disabled in the Docker Host(https://github.com/kreuzwerker/terraform-provider-docker/issues/534). Please see docker build command reference too.
forceRemove If true, then the image is removed forcibly when the resource is destroyed.
imageId The ID of the image (as seen when executing docker inspect on the image). Can be used to reference the image via its ID in other resources.
keepLocally 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 local storage on destroy operation.
name The name of the Docker image, including any tags or SHA256 repo digests.
platform The platform to use when pulling the image. Defaults to the platform of the current machine.
pullTriggers List of values which cause an image pull when changed. This is used to store the image digest from the registry when using the dockerregistryimage.
repoDigest The image sha256 digest in the form of repo[:tag]@sha256:<hash>. This may not be populated when building an image, because it is read from the local Docker client and so may be available only when the image was either pulled from the repo or pushed to the repo (perhaps using docker.RegistryImage) in a previous run.
triggers A map of arbitrary strings that, when changed, will force the docker.RemoteImage resource to be replaced. This can be used to rebuild an image when contents of source code folders change
Implementation
const RemoteImageState({
this.build,
this.forceRemove,
this.imageId,
this.keepLocally,
this.name,
this.platform,
this.pullTriggers,
this.repoDigest,
this.triggers,
});