DEV: Add non-x86_64 warning to `d/boot_dev`

DEV: Add non-x86_64 warning to d/boot_dev

Running a development environment using Docker’s qemu architecture emulation is currently not possible because inotify is not supported: In docker desktop preview, the inotify function fails on a container with platform set to linux/amd64. · Issue #5321 · docker/for-mac · GitHub

diff --git a/bin/docker/boot_dev b/bin/docker/boot_dev
index 0eccb43..52b6353 100755
--- a/bin/docker/boot_dev
+++ b/bin/docker/boot_dev
@@ -60,6 +60,13 @@ while [ "${#@}" -ne "0" ]; do
+if [[ $(docker info -f "{{.Architecture}}") != *x86_64* ]]; then
+    echo "WARNING: Docker architecture is not x86_64."
+    echo "Discourse development is unlikely to work using Docker's architecture emulation."
+    echo "Please try a native development installation."
+    sleep 1
 echo "Using source in: ${SOURCE_DIR}"
 echo "Using data in:   ${DATA_DIR}"

GitHub sha: 78f9d47a

This commit appears in #13117 which was approved by CvX. It was merged by davidtaylorhq.