You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.
The documentation now shows having a reference to an image resource:
image = "${docker_image.ubuntu.latest}"
and configuring that image resource to specify the image name.
With 2.7.2 there is a perpetual mismatch between the image name spcified in the config and the image id that terraform plan and apply identifies.
I can't find any documentation covering this breaking change between versions, I don't know if this break is intentional or something that would be fixed. I see many examples illustrating the succinct way of referencing an image that works in version 2.6.0. It would be good if specifying the image directly in image continued to work rather than requiring an additional image resource block containing the image name.
If the form that worked in 2.6.0 is not supported any more than an error during plan or apply to prevent its use would make this clear. Currently it's accepted as valid but causes resource replacement on every apply.
Terraform Version
Terraform 0.13.3 with Docker provider 2.6.0 and 2.7.2
Affected Resource(s)
docker_container
Expected Behavior
The resource should be matched with previous state so unnecessary changes are not made.
Actual Behavior
The resource is detected as a change because the given image value is matched against SHA and therefore is always detected as a change, requiring replacement of the resource.
For me, who is using terraform 0.11.4 (trying to move to 0.12), upgrading to v2.6.0 also result in similar
situation. i can only upgrade to v2.5.0 safely without recreating all my docker container
There is a difference between the handling of the
image
argument of v2.6.0 and v2.7.2.The image specification shown below works with the 2.6.0 Docker provider but not with version 2.7.2.
The documentation now shows having a reference to an image resource:
and configuring that image resource to specify the image name.
With 2.7.2 there is a perpetual mismatch between the image name spcified in the config and the image id that
terraform plan
andapply
identifies.I can't find any documentation covering this breaking change between versions, I don't know if this break is intentional or something that would be fixed. I see many examples illustrating the succinct way of referencing an image that works in version 2.6.0. It would be good if specifying the image directly in
image
continued to work rather than requiring an additional image resource block containing the image name.If the form that worked in 2.6.0 is not supported any more than an error during plan or apply to prevent its use would make this clear. Currently it's accepted as valid but causes resource replacement on every apply.
Terraform Version
Terraform 0.13.3 with Docker provider 2.6.0 and 2.7.2
Affected Resource(s)
docker_container
Expected Behavior
The resource should be matched with previous state so unnecessary changes are not made.
Actual Behavior
The resource is detected as a change because the given image value is matched against SHA and therefore is always detected as a change, requiring replacement of the resource.
Steps to Reproduce
terraform apply
References
hashicorp/terraform#26382
Also #291 is similar.
The text was updated successfully, but these errors were encountered: