From 0f402e0c758d2bad36e8bd733df9970a5af31c7d Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Fri, 1 Jul 2022 18:12:47 -0400 Subject: [PATCH] dockcross-script: Specify --platform flag All images built for a linux/amd64 host. Addresses warning when running an Apple M1: WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested --- imagefiles/dockcross.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/imagefiles/dockcross.sh b/imagefiles/dockcross.sh index 49cb2fb..995db06 100755 --- a/imagefiles/dockcross.sh +++ b/imagefiles/dockcross.sh @@ -242,6 +242,7 @@ TTY_ARGS= tty -s && [ -z "$MSYS" ] && TTY_ARGS=-ti CONTAINER_NAME=dockcross_$RANDOM $OCI_EXE run $TTY_ARGS --name $CONTAINER_NAME \ + --platform linux/amd64 \ -v "$HOST_PWD":/work \ $HOST_VOLUMES \ "${USER_IDS[@]}" \