From efc92160afd55a1a5ea18ce46105ed18ae2a8077 Mon Sep 17 00:00:00 2001 From: Yeray Borges Date: Mon, 2 Feb 2026 09:41:36 +0000 Subject: [PATCH] Issue-337 Workaround Docker CLI 2533 issue Signed-off-by: Yeray Borges --- build/build.sh | 4 ++++ config/tests/build-test-images.sh | 2 ++ 2 files changed, 6 insertions(+) diff --git a/build/build.sh b/build/build.sh index 68f28bab..2f77b287 100755 --- a/build/build.sh +++ b/build/build.sh @@ -10,4 +10,8 @@ REPO_PATH="github.com/wildfly/wildfly-operator" VERSION="$(git describe --tags --always --dirty)" GO_LDFLAGS_ARG="-X '${REPO_PATH}/version.Version=${VERSION}'" echo "building ${PROJECT_NAME} and tagging with ${IMAGE_NAME}" + +# Workaround https://github.com/docker/cli/issues/2533 +export DOCKER_API_VERSION=1.43 + docker build -t ${IMAGE_NAME} --build-arg GO_LDFLAGS="${GO_LDFLAGS_ARG}" . diff --git a/config/tests/build-test-images.sh b/config/tests/build-test-images.sh index f4dadbed..7882b321 100755 --- a/config/tests/build-test-images.sh +++ b/config/tests/build-test-images.sh @@ -1,6 +1,8 @@ #!/bin/bash set -e +# Workaround https://github.com/docker/cli/issues/2533 +export DOCKER_API_VERSION=1.43 WORKDIR=$(readlink -f "$(dirname "$0")/../../bin/test_repos") echo "WORKDIR: ${WORKDIR}"