Quote volume mapping and use pwd

Signed-off-by: Stefan Scherer <stefan.scherer@docker.com>
This commit is contained in:
Stefan Scherer
2020-07-15 08:45:25 +02:00
parent f77065be98
commit a33ed89ab3
3 changed files with 8 additions and 8 deletions

View File

@@ -180,7 +180,7 @@ With all of that explained, let's start our dev-ready container!
```bash hl_lines="3 4 5 6 7"
docker run -dp 3000:3000 \
-w /app -v ${PWD}:/app \
-w /app -v "$(pwd):/app" \
--network todo-app \
-e MYSQL_HOST=mysql \
-e MYSQL_USER=root \
@@ -194,7 +194,7 @@ With all of that explained, let's start our dev-ready container!
```powershell hl_lines="3 4 5 6 7"
docker run -dp 3000:3000 `
-w /app -v ${PWD}:/app `
-w /app -v "$(pwd):/app" `
--network todo-app `
-e MYSQL_HOST=mysql `
-e MYSQL_USER=root `