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
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.9.2
on linux_amd64
+ provider registry.terraform.io/kreuzwerker/docker v3.0.2
Affected Resource(s)
docker_container
Terraform Configuration Files
terraform {
required_providers {
docker={
source ="kreuzwerker/docker"
version ="~> 3.0.2"
}
}
}
provider"docker" {}
resource"docker_container""build-task" {
image="debian:testing"name="example-build-task"# imagine this being a build process on a bind-mounted volumecommand=["echo", "hello world"]
# we want to wait for the build to finish (e.g. to be able to use depends_on)attach=true# the build (and thus the container) will finish at some pointmust_run=false# we want to clean-up and remove the build containerrm=true
}
The debug log was captured by running terraform in docker (with the hosts docker socket mounted), because I have installed OpenTofu instead of terraform on my host.
But the error occurs with both terraform and opentofu.
References
#0000
Workaround
I'm using the local-exec provisioner for now (docker run --rm ...).
The text was updated successfully, but these errors were encountered:
Community Note
Terraform (and docker Provider) Version
Affected Resource(s)
docker_container
Terraform Configuration Files
Debug Output
https://gist.github.com/ZauberNerd/3245880f47e969baffeb0aa58ed2f31c
Panic Output
Expected Behaviour
terraform apply
should not fail.Actual Behaviour
terraform apply
fails.Steps to Reproduce
terraform apply
Important Factoids
The debug log was captured by running terraform in docker (with the hosts docker socket mounted), because I have installed OpenTofu instead of terraform on my host.
But the error occurs with both terraform and opentofu.
References
Workaround
I'm using the
local-exec
provisioner for now (docker run --rm ...
).The text was updated successfully, but these errors were encountered: