mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 13:55:41 +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}"
|
echo "COPY nsswitch.conf /etc/" >> "${docker_file_path}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"${DOCKER[@]}" buildx build \
|
DOCKER_CLI_EXPERIMENTAL=enabled "${DOCKER[@]}" buildx build \
|
||||||
--platform linux/"${arch}" \
|
--platform linux/"${arch}" \
|
||||||
--load ${docker_build_opts:+"${docker_build_opts}"} \
|
--load ${docker_build_opts:+"${docker_build_opts}"} \
|
||||||
-q \
|
-q \
|
||||||
|
@ -56,7 +56,7 @@ endif
|
|||||||
|
|
||||||
cd ${TEMP_DIR} && sed -i.back "s|BASEIMAGE|${BASEIMAGE}|g" Dockerfile
|
cd ${TEMP_DIR} && sed -i.back "s|BASEIMAGE|${BASEIMAGE}|g" Dockerfile
|
||||||
|
|
||||||
docker buildx build \
|
DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build \
|
||||||
--platform linux/${ARCH} \
|
--platform linux/${ARCH} \
|
||||||
--load \
|
--load \
|
||||||
--pull \
|
--pull \
|
||||||
|
Loading…
Reference in New Issue
Block a user