Merge pull request #249 from amims71/patch-1

fixed broken code design
This commit is contained in:
Stefan Scherer 2022-04-11 16:44:27 +02:00 committed by GitHub
commit 858d6c7607
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,7 @@ For now, we will create the network first and attach the MySQL container at star
architecture than amd64, which is the only supported architecture for the mysql image at the moment. To solve this architecture than amd64, which is the only supported architecture for the mysql image at the moment. To solve this
add the flag `--platform linux/amd64` in the previous command. So your new command should look like this: add the flag `--platform linux/amd64` in the previous command. So your new command should look like this:
```bash ```bash
docker run -d \ docker run -d \
--network todo-app --network-alias mysql --platform linux/amd64 \ --network todo-app --network-alias mysql --platform linux/amd64 \
-v todo-mysql-data:/var/lib/mysql \ -v todo-mysql-data:/var/lib/mysql \
@ -208,7 +208,7 @@ With all of that explained, let's start our dev-ready container!
If you updated your docker file in the Bind Mount section of the tutorial use the updated command: If you updated your docker file in the Bind Mount section of the tutorial use the updated command:
```bash hl_lines="3 4 5 6 7" ```bash hl_lines="3 4 5 6 7"
docker run -dp 3000:3000 \ docker run -dp 3000:3000 \
-w /app -v "$(pwd):/app" \ -w /app -v "$(pwd):/app" \
--network todo-app \ --network todo-app \