Merge pull request #98672 from hasheddan/experimental-buildx
Set DOCKER_CLI_EXPERIMENTAL=enabled for images using buildx
This commit is contained in:
@@ -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 \
|
||||||
|
Reference in New Issue
Block a user