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
Building and pushing directly via Docker, it accepts eu.gcr.io/my-project-id/my-image-name and assumes eu.gcr.io/my-project-id/my-image-name:latest, so I expected the same behavior here.
I see a few possible solutions:
strip the final : from FqName
set a default latest tag
return a more precise error to tell the user to always provide a tag
The text was updated successfully, but these errors were encountered:
Community Note
Terraform (and docker Provider) Version
Affected Resource(s)
docker_registry_image
Terraform Configuration Files
Expected Behaviour
Docker image built and pushed
Actual Behaviour
Error: Error building docker image: Error response from daemon: invalid reference format
Steps to Reproduce
terraform apply
Important Factoids
I did a bit of debugging, and providing a name without a tag gives this
internalPushImageOptions
Note the
:
at the end ofFqName
.Building and pushing directly via Docker, it accepts
eu.gcr.io/my-project-id/my-image-name
and assumeseu.gcr.io/my-project-id/my-image-name:latest
, so I expected the same behavior here.I see a few possible solutions:
:
fromFqName
latest
tagThe text was updated successfully, but these errors were encountered: