We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e14834 commit 094d879Copy full SHA for 094d879
src/scripts/docker_buildx.sh
@@ -80,7 +80,10 @@ if [ "${AWS_ECR_BOOL_SKIP_WHEN_TAGS_EXIST}" -eq "0" ] || [[ "${AWS_ECR_BOOL_SKIP
80
# otherwise the command will fail when called more than once in the same job.
81
docker context create builder
82
docker run --privileged --rm "tonistiigi/binfmt:$PARAM_BINFMT_VERSION" --install all
83
- docker --context builder buildx create --name DLC_builder --use
+ builder_exists="$(docker --context builder buildx ls --format json | jq -s 'any(.[]; .Name == "DLC_builder")')"
84
+ if [ "${builder_exists}" != "true" ]; then
85
+ docker --context builder buildx create --name DLC_builder --use
86
+ fi
87
fi
88
context_args="--context builder"
89
# if no builder instance is currently used, create one
0 commit comments