Closed WhoAteDaCake closed 4 years ago
@WhoAteDaCake I thought I was having this same issue, i wasn't, turned out to be the image name was wrong (i'm pretty new to docker). In either case, the docs indicate that the registry_auth block is only for targetting v2 of the API. for me the following block worked.
provider docker {
host = "ssh://user@xxx.xxx.x.xxx"
registry_auth {
address = "registry.hub.docker.com"
username = "user"
password = "access-token"
}
}
Using the registry auth + manual username/password worked. Thank you @jbruett
Terraform Version
Terraform v0.12.24
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/WhoAteDaCake/4865556a5bae621074385ec929a07c12
P.S Had to take only the bottom part of the logs as they contain my docker credentials
Expected Behavior
Expect the image to be pulled
Actual Behavior
Image should be pulled correctly
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Important Factoids