mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
Merge pull request #98672 from hasheddan/experimental-buildx
Set DOCKER_CLI_EXPERIMENTAL=enabled for images using buildx
This commit is contained in:
commit
f81aa3f772
@ -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 \
|
||||
|
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user