docker run command for ASP.NET Core and Visual Studio 2017

You can add the <DockerfileRunArguments> tag to the <PropertyGroup> section in your *.csproj file and put additional run parameters there.

e.g.

<Project Sdk="Microsoft.NET.Sdk.Web">
  <PropertyGroup>
    <DockerfileRunArguments>-p 5000:6000</DockerfileRunArguments>
  </PropertyGroup>
</Project>

You cannot change the command , however you may create a new Debug Profile and make modifications to the Application Arguments...something like this enter image description here