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
2024-01-03T10:41:22.200Z [ERROR] provider.terraform-provider-docker_v3.0.2: Response contains error diagnostic: @caller=github.com/hashicorp/terraform-plugin-go@v0.14.3/tfprotov5/internal/diag/diagnostics.go:55 diagnostic_detail= diagnostic_severity=ERROR diagnostic_summary="Got error when attempting to fetch image version docker/codercom/oss-dogfood:latest from registry: Got bad response from registry: 403 Forbidden" tf_data_source_type=docker_registry_image tf_proto_version=5.3 tf_provider_addr=provider @module=sdk.proto tf_req_id=ca24be13-3ceb-79e7-ac36-0405ca2ab950 tf_rpc=ReadDataSource timestamp=2024-01-03T10:41:22.200Z2024-01-03T10:41:22.201Z [ERROR] vertex "data.docker_registry_image.dogfood" error: Got error when attempting to fetch image version docker/codercom/oss-dogfood:latest from registry: Got bad response from registry: 403 Forbidden2024-01-03T10:41:22.201Z [ERROR] vertex "data.docker_registry_image.dogfood (expand)" error: Got error when attempting to fetch image version docker/codercom/oss-dogfood:latest from registry: Got bad response from registry: 403 Forbidden2024-01-03T10:41:22.202Z [INFO] backend/local: plan operation completed2024-01-03T10:41:22.202Z [INFO] backend/local: writing plan output to: /tmp/provisionerd3922510325/Sessionff4decd2-ad87-4158-aa3d-d78ec2fce40c/terraform.tfplanError: Got error when attempting to fetch image version docker/codercom/oss-dogfood:latest from registry: Got bad response from registry: 403 Forbiddenon main.tf line 225, in data "docker_registry_image" "dogfood": 225: data "docker_registry_image" "dogfood" {2024-01-03T10:41:22.212Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"2024-01-03T10:41:22.214Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/3.0.2/linux_amd64/terraform-provider-docker_v3.0.2 pid=1642024-01-03T10:41:22.214Z [DEBUG] provider: plugin exited
Expected Behaviour
Terraform should be able to get the image metadata, including the SHA digest, from the private regsitry.
Community Note
Terraform (and docker Provider) Version
Terraform: v1.5.7
Docker provider: 3.0.2
Affected Resource(s)
docker_regsitry_iamge
Terraform Configuration Files
Debug Output
Expected Behaviour
Terraform should be able to get the image metadata, including the SHA digest, from the private regsitry.
Actual Behaviour
Terraform fails with a 403 code
Steps to Reproduce
terraform apply
References
registry_auth
directly indocker_registry_image
聽#556The text was updated successfully, but these errors were encountered: