Merge pull request #98672 from hasheddan/experimental-buildx

Set DOCKER_CLI_EXPERIMENTAL=enabled for images using buildx
This commit is contained in:
Kubernetes Prow Robot 2021-02-01 13:42:17 -08:00 committed by GitHub
commit f81aa3f772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -383,7 +383,7 @@ EOF
echo "COPY nsswitch.conf /etc/" >> "${docker_file_path}"
fi
"${DOCKER[@]}" buildx build \
DOCKER_CLI_EXPERIMENTAL=enabled "${DOCKER[@]}" buildx build \
--platform linux/"${arch}" \
--load ${docker_build_opts:+"${docker_build_opts}"} \
-q \

View File

@ -56,7 +56,7 @@ endif
cd ${TEMP_DIR} && sed -i.back "s|BASEIMAGE|${BASEIMAGE}|g" Dockerfile
docker buildx build \
DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build \
--platform linux/${ARCH} \
--load \
--pull \