From 0a29839e0aa05e9358c99020fe8dc8892a15b0d9 Mon Sep 17 00:00:00 2001 From: olcia1 <74720574+olcia1@users.noreply.github.com> Date: Sun, 28 May 2023 18:50:39 +0200 Subject: [PATCH] Update image.md According to the issue https://github.com/kreuzwerker/terraform-provider-docker/issues/554 build_arg field has been renamed to build_args for docker_image resource. Here I am fixing doc for this change. --- docs/resources/image.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/resources/image.md b/docs/resources/image.md index 50d33909f..4417a9225 100644 --- a/docs/resources/image.md +++ b/docs/resources/image.md @@ -50,12 +50,12 @@ In this case the image "zoo" and "zoo:develop" are built. resource "docker_image" "zoo" { name = "zoo" build { - context = "." - tag = ["zoo:develop"] - build_arg = { + context = "." + tag = ["zoo:develop"] + build_args = { foo : "zoo" } - label = { + label = { author : "zoo" } } @@ -108,8 +108,7 @@ Required: Optional: - `auth_config` (Block List) The configuration for the authentication (see [below for nested schema](#nestedblock--build--auth_config)) -- `build_arg` (Map of String) Set build-time variables -- `build_args` (Map of String) Pairs for build-time variables in the form TODO +- `build_args` (Map of String) Pairs for build-time variables in the form `ENDPOINT : "https://example.com"` - `build_id` (String) BuildID is an optional identifier that can be passed together with the build request. The same identifier can be used to gracefully cancel the build with the cancel request. - `cache_from` (List of String) Images to consider as cache sources - `cgroup_parent` (String) Optional parent cgroup for the container