terraform-provider-docker icon indicating copy to clipboard operation
terraform-provider-docker copied to clipboard

Mistake in docs - build_arg does not work, but build_args does

Open paviln opened this issue 2 years ago • 2 comments
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}"
    }
  }
}

paviln avatar May 16 '23 22:05 paviln

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)

mootari avatar May 27 '23 22:05 mootari

This is very confusing. The documentation could be fixed easily.

gregopenit avatar Sep 18 '24 09:09 gregopenit

Fixed with https://github.com/kreuzwerker/terraform-provider-docker/pull/681 Will be released soon

Junkern avatar Apr 13 '25 10:04 Junkern