Sign inSign up

lrakai/aspnet-docker-app

By lrakai

•Updated over 9 years ago

Sample ASP.NET application used to show how to create Docker Windows containers

Image
0

2.8K

lrakai/aspnet-docker-app repository overview

⁠aspnet-docker-app

Sample ASP.NET application used to show how to create Docker Windows containers

⁠Usage

In Visual Studio, publish the site using the ContainerImage Publish Profile. This will create a PublishOutput\ directory in the project directory.

Assuming you have Docker engine installed on your Windows system, issue the following command from a command prompt or PowerShell terminal in the project directory:

docker build -t aspnet-sample .

This creates the image using the PublishOutput\ contents and Microsoft's aspnet base image.

Run a container using the image you created with:

docker run -d --name aspnet-sample aspnet-sample

Verify it is working by entering the IP address output by the following command into your browser:

docker inspect -f "{{ .NetworkSettings.Networks.nat.IPAddress }}" aspnet-sample

Tag summary

Content type

Image

Digest

Size

5.1 GB

Last updated

over 9 years ago

docker pull lrakai/aspnet-docker-app