File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 132132
133133# Ensure QEMU is set up for cross-platform builds
134134echo -n " Ensuring QEMU is configured for cross-platform builds..."
135- if docker run --rm --privileged multiarch/qemu-user-static --reset -p yes > /dev/null 2>&1 ; then
135+ if docker run --rm --privileged tonistiigi/binfmt --install all > /dev/null 2>&1 ; then
136136 echo -e " [${GREEN} OK${NC} ]"
137137else
138138 echo -e " [${RED} FAIL${NC} ]"
Original file line number Diff line number Diff line change 1919if [ " $1 " != " -y" ]; then
2020 echo " ### Setting up Docker for Multi-Arch Builds."
2121 echo " ### Requires Docker packages from https://get.docker.com/"
22- echo " ### Use on x64 only!"
23- echo " ### Run with -y if you fit the requirements!"
22+ echo " ### Run with -y if you meet the requirements!"
2423 exit 0
2524fi
2625
4241
4342# Ensure QEMU is set up for cross-platform builds
4443echo -n " Ensuring QEMU is configured for cross-platform builds..."
45- if docker run --rm --privileged multiarch/qemu-user-static --reset -p yes > /dev/null 2>&1 ; then
44+ if docker run --rm --privileged tonistiigi/binfmt --install all > /dev/null 2>&1 ; then
4645 echo -e " [${GREEN} OK${NC} ]"
4746else
4847 echo -e " [${RED} FAIL${NC} ]"
@@ -95,5 +94,5 @@ echo " docker login -u <username>"
9594echo " docker login ghcr.io -u <username>"
9695echo
9796echo -e " ${BLUE} Fix segmentation faults when building arm64 images:${NC} "
98- echo " docker run --rm --privileged multiarch/qemu-user-static --reset -p yes "
97+ echo " docker buildx rm mybuilder && docker run --rm --privileged tonistiigi/binfmt --install all "
9998echo
You can’t perform that action at this time.
0 commit comments