Skip to content

Commit 0f6d9c0

Browse files
committed
Add more Windows command to Docker reloading lecture
1 parent 0625b93 commit 0f6d9c0

File tree

1 file changed

+15
-3
lines changed
  • docs/docs/05_flask_smorest/05_reload_api_docker_container

1 file changed

+15
-3
lines changed

docs/docs/05_flask_smorest/05_reload_api_docker_container/README.md

+15-3
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,25 @@ docker run -dp 5000:5000 -w /app -v "$(pwd):/app" flask-smorest-api
8080
```
8181

8282
:::info Windows command
83-
The command on Windows is the same, but the paths have to be passed in differently:
83+
The command on Windows varies depending on what terminal application you use. Here are some of the most popular ones!
84+
85+
**PowerShell**
86+
87+
```
88+
docker run -dp 5000:5000 -w //app -v "$(Get-Location)://app" flask-smorest-api
89+
```
90+
91+
**Git Bash**
8492

8593
```
86-
docker run -dp 5000:5000 -w /app -v "/c/Documents/yourproject:/app" flask-smorest-api
94+
docker run -dp 5000:5000 -w //app -v "//$(pwd)://app" flask-smorest-api
8795
```
8896

89-
Instead of `/c/Documents/yourproject`, use the path to your project (but remember to use `/c/` instead of `C:/`).
97+
**Command Prompt (CMD)**
98+
99+
```
100+
docker run -dp 5000:5000 -w //app -v "%cd%://app" flask-smorest-api
101+
```
90102
:::
91103

92104
- `-dp 5000:5000` - same as before. Run in detached (background) mode and create a port mapping.

0 commit comments

Comments
 (0)