Container sample: Run a web application You can quickly run a container with a pre-built .NET Core Docker image, based on the ASP.NET Core sample. Type the following command to run a sample web application:
docker run -d -p 8080:80 --name myapp dot2
After the application starts, navigate to http://localhost:8000 in your web browser. On Windows, you may need to navigate to the container via IP address. See ASP.NET Core apps in Windows Containers for instructions on determining the IP address, using the value of --name that you used in docker run.
See Hosting ASP.NET Core Images with Docker over HTTPS to use HTTPS with this image.
Content type
Image
Digest
Size
101.4 MB
Last updated
almost 7 years ago
docker pull gmaragna/aspnet:dot2