terraform-provider-docker
terraform-provider-docker copied to clipboard
Mistake in docs - build_arg does not work, but build_args does
trafficstars
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
1.4.6 - 3.0.2
Affected Resource(s)
docker_image
Terraform Configuration Files
locals {
username = "arnold"
}
resource "docker_image" "main" {
name = "test_image"
build {
context = "./build"
build_arg = {
username = "${local.username}"
}
}
}
Looks like build_arg was renamed to build_args in https://github.com/kreuzwerker/terraform-provider-docker/pull/501 but for some reason the old doc string was kept. (cc @Junkern)
This is very confusing. The documentation could be fixed easily.
Fixed with https://github.com/kreuzwerker/terraform-provider-docker/pull/681 Will be released soon