From a4de787aed5344b54eb067bb8ad7b36d6e78b242 Mon Sep 17 00:00:00 2001 From: Bart Duisters <43420049+bartduisters@users.noreply.github.com> Date: Mon, 4 Apr 2022 14:45:40 +0200 Subject: [PATCH] Update 07_multi_container.md (#14234) * Update 07_multi_container.md Add a script that works on M1 chips for people following this guide on Apple Silicon. * Add shell prompt, use linux/amd64 Co-authored-by: Stefan Scherer --- get-started/07_multi_container.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/get-started/07_multi_container.md b/get-started/07_multi_container.md index c15678cd00..6828dc33aa 100644 --- a/get-started/07_multi_container.md +++ b/get-started/07_multi_container.md @@ -53,6 +53,18 @@ For now, we will create the network first and attach the MySQL container at star -e MYSQL_DATABASE=todos \ mysql:5.7 ``` + + If you are using an ARM based chip, e.g. Macbook M1 Chips / Apple Silicon, then use this command. + + ```console + $ docker run -d \ + --network todo-app --network-alias mysql \ + --platform "linux/amd64" \ + -v todo-mysql-data:/var/lib/mysql \ + -e MYSQL_ROOT_PASSWORD=secret \ + -e MYSQL_DATABASE=todos \ + mysql:5.7 + ``` If you are using PowerShell then use this command.