Skip to content

Commit a4de787

Browse files
Update 07_multi_container.md (docker#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 <stefan.scherer@docker.com>
1 parent 807c600 commit a4de787

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

get-started/07_multi_container.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,18 @@ For now, we will create the network first and attach the MySQL container at star
5353
-e MYSQL_DATABASE=todos \
5454
mysql:5.7
5555
```
56+
57+
If you are using an ARM based chip, e.g. Macbook M1 Chips / Apple Silicon, then use this command.
58+
59+
```console
60+
$ docker run -d \
61+
--network todo-app --network-alias mysql \
62+
--platform "linux/amd64" \
63+
-v todo-mysql-data:/var/lib/mysql \
64+
-e MYSQL_ROOT_PASSWORD=secret \
65+
-e MYSQL_DATABASE=todos \
66+
mysql:5.7
67+
```
5668

5769
If you are using PowerShell then use this command.
5870

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy