You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/run-in-sdk-container.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -53,21 +53,21 @@ You can test this working by simply editing [Program.cs](dotnetapp/Program.cs).
53
53
54
54
The following instructions demonstrate this scenario in various environments.
55
55
56
-
## Linux or macOS
56
+
###Linux or macOS
57
57
58
58
```console
59
59
docker run --rm -it -v $(pwd):/app/ -w /app mcr.microsoft.com/dotnet/sdk:8.0 dotnet run
60
60
```
61
61
62
-
## Windows using Linux containers
62
+
###Windows using Linux containers
63
63
64
64
This example uses PowerShell.
65
65
66
66
```console
67
67
docker run --rm -it -v ${pwd}:/app/ -w /app mcr.microsoft.com/dotnet/sdk:8.0 dotnet run
68
68
```
69
69
70
-
## Windows using Windows containers
70
+
###Windows using Windows containers
71
71
72
72
This example uses PowerShell.
73
73
@@ -123,7 +123,7 @@ This example uses PowerShell.
123
123
docker run --rm -it -p 8000:8080 -v ${pwd}:C:\app\ -w \app -e ASPNETCORE_HTTP_URLS=8080 -e ASPNETCORE_ENVIRONMENT=Development mcr.microsoft.com/dotnet/sdk:8.0 dotnet run --no-launch-profile
124
124
```
125
125
126
-
###Using a launch profile to configure ASP.NET Core
126
+
## Using a launch profile to configure ASP.NET Core
127
127
128
128
The examples above use environment variables to configure ASP.NET Core. You can instead [configure ASP.NET Core with a launchSettings.json file](https://docs.microsoft.com/aspnet/core/fundamentals/environments). The [launchSettings.json file](aspnetapp/aspnetapp/Properties/launchSettings.json) in this app has been updated with a `container` profile that can be used instead of specifying environment variables with the docker CLI.
0 commit comments