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 Original file line number Diff line number Diff line change @@ -80,13 +80,25 @@ docker run -dp 5000:5000 -w /app -v "$(pwd):/app" flask-smorest-api
80
80
```
81
81
82
82
:::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**
84
92
85
93
```
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
87
95
```
88
96
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
+ ```
90
102
:::
91
103
92
104
- ` -dp 5000:5000 ` - same as before. Run in detached (background) mode and create a port mapping.
You can’t perform that action at this time.
0 commit comments