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
Hello, I am faced with the problem of creating docker images and push it to AWS ECR. After some debugging hours I found that it works with provider version <=2.12.0 and not working with newer versions.
Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform (and docker Provider) Version
Terraform v1.1.7
on darwin_amd64
+ provider registry.terraform.io/hashicorp/aws v4.21.0
+ provider registry.terraform.io/kreuzwerker/docker v2.17.0
Your version of Terraform is out of date! The latest version
is 1.2.4. You can update by downloading from https://www.terraform.io/downloads.html
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# docker_registry_image.helloworld will be created
+ resource "docker_registry_image" "helloworld" {
+ id = (known after apply)
+ insecure_skip_verify = false
+ keep_remotely = false
+ name = "024975173233.dkr.ecr.eu-central-1.amazonaws.com/test_docker_provider:bug"
+ sha256_digest = (known after apply)
+ build {
+ context = "/abs_path_to_folder_with_dockerfile:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
+ dockerfile = "Dockerfile"
}
}
Plan: 1 to add, 0 to change, 0 to destroy.
docker_registry_image.helloworld: Creating...
╷
│ Error: Error building docker image: Error response from daemon: Cannot locate specified Dockerfile: Dockerfile
│
│ with docker_registry_image.helloworld,
│ on local_docker_image.tf line 27, in resource "docker_registry_image" "helloworld":
│ 27: resource "docker_registry_image" "helloworld" {
│
╵
@azatsafin we just released v2.18.0. Can you try if that release fixes your problem?
If not: Could you double check the abs_path_to_folder_with_dockerfile folder? Is there a Dockerfile in there?
Feel also free to paste the contents of the folder (ls -ahl) in a gist and post it here, so I can have a better understand what is happening
Hello, I am faced with the problem of creating docker images and push it to AWS ECR. After some debugging hours I found that it works with provider version <=2.12.0 and not working with newer versions.
Community Note
Terraform (and docker Provider) Version
Affected Resource(s)
docker_registry_image
Terraform Configuration Files
Debug Output
Expected Behaviour
Build docker image and push it
Actual Behaviour
Steps to Reproduce
terraform init --upgrade
terraform apply
Gist Link
Terraform log file
The text was updated successfully, but these errors were encountered: