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: docs/containers/container-launch-settings.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -68,11 +68,11 @@ The following table shows the properties that can be set in this section:
68
68
| Property in Debug Profile UI | Setting name in launchSettings.json |Example|Description|
69
69
| - | - | - | - |
70
70
|Command line arguments| commandLineArgs |`"commandLineArgs": "--mysetting myvalue"`| These command-line arguments for starting your app are used when launching your project in the container. |
71
-
|Container run arguments| containerRunArguments|`"containerRunArguments": "-l mylabel=value"`|Like `dockerfileRunArguments`, but for use with the .NET SDK container build type. |
72
-
|N/A|DockerfileRunArguments|`dockerfileRunArguments": "-l mylabel=value"`|Additional arguments to pass to the [`docker run`](https://docs.docker.com/engine/reference/commandline/run/) command. <br><br/> This setting only applies to projects that use the Dockerfile container build type. <br/><br/> In Visual Studio 17.3 and later, you can use the following replacement tokens added:<br/><br/> - `{ProjectDir}` - Full path to the project directory. <br/><br/> - `{OutDir}` - The value of the MSBuild property OutDir.|
71
+
|Container run arguments| containerRunArguments<br/>ContainerRunArguments|`"containerRunArguments": "-l mylabel=value"`|(Use the lowercase version in Visual Studio 17.12 and later. The uppercase version is provided for backward compatibility.) Additional arguments to pass to the [`docker run`](https://docs.docker.com/engine/reference/commandline/run/) command. <br><br/> This setting only applies to projects that use the Dockerfile container build type. <br/><br/> In Visual Studio 17.3 and later, you can use the following replacement tokens added:<br/><br/> - `{ProjectDir}` - Full path to the project directory. <br/><br/> - `{OutDir}` - The value of the MSBuild property OutDir. |
72
+
|N/A|DockerfileRunArguments|`dockerfileRunArguments": "-l mylabel=value"`|Like `containerRunArguments`, but available for backward compatibility.|
73
73
|Environment Variables| environmentVariables |`"environmentVariables":` {<br/> `"ASPNETCORE_URLS": "https://+:443;http://+:80"`, <br/> `"ASPNETCORE_HTTPS_PORT": "44381"` <br/> } | These environment variable values are passed to the process when it's launched in the container. |
74
-
|Container Name| containerName |`mycontainer`| A name for the container matching the regular expression `[a-zA-Z0-9][a-zA-Z0-9_.-]`.|
75
-
|Container environment files| containerRunEnvironmentFiles |`"containerRunEnvironmentFiles": "abc.env;xyz.env"`| A list of environment variable files (`.env` files) separated by semicolons. See [.env file syntax](https://docs.docker.com/compose/how-tos/environment-variables/variable-interpolation/#env-file-syntax). |
74
+
|Container Name| containerName |`mycontainer`|(17.12 and later) A name for the container matching the regular expression `[a-zA-Z0-9][a-zA-Z0-9_.-]`.|
75
+
|Container environment files| containerRunEnvironmentFiles |`"containerRunEnvironmentFiles": "abc.env;xyz.env"`|(17.12 and later) A list of environment variable files (`.env` files) separated by semicolons. See [.env file syntax](https://docs.docker.com/compose/how-tos/environment-variables/variable-interpolation/#env-file-syntax). |
76
76
|Http Port| httpPort |`"httpPort": 24051`| This port on the host is mapped to the container's port 80 when launching the container. |
77
77
|Launch Browser| launchBrowser |`"launchBrowser": true`| Indicates whether to launch the browser after successfully launching the project. |
78
78
|N/A| launchBrowserTimeout |`"launchBrowserTimeout": 1`| The maximum amount of time (in seconds) to wait for the app to be ready before launching the browser (Docker Compose only). |
0 commit comments