From 4f083d128a01c7a4eac684bb2dcc902e572a8643 Mon Sep 17 00:00:00 2001 From: Rich Lander Date: Wed, 13 Jun 2018 04:28:32 -0700 Subject: [PATCH] Update README.md (#164) --- samples/README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/samples/README.md b/samples/README.md index de487351..72af88a9 100644 --- a/samples/README.md +++ b/samples/README.md @@ -14,6 +14,18 @@ Type the following [Docker](https://www.docker.com/products/docker) command: docker run --rm microsoft/dotnet-framework-samples ``` +## Try a pre-built ASP.NET Docker Image + +You can quickly run a container with a pre-built [sample ASP.NET Docker image](https://hub.docker.com/r/microsoft/dotnet-samples/), based on the [ASP.NET Docker sample]. + +Type the following [Docker](https://www.docker.com/products/docker) command: + +```console +docker run --name aspnet_sample --rm -it -p 8000:80 microsoft/dotnet-samples:aspnetapp +``` + +After the application starts, navigate to `http://localhost:8000` in your web browser. You need to navigate to the application via IP address instead of `localhost` for earlier Windows versions, which is demonstrated in [View the ASP.NET app in a running container on Windows](https://github.com/microsoft/dotnet-framework-docker/blob/master/samples/aspnetapp/README.md#view-the-aspnet-app-in-a-running-container-on-windows). + ## Building .NET Framework Apps with Docker * [.NET Framework Console Docker Sample](dotnetapp/README.md) - This [sample](dotnetapp/Dockerfile) builds, tests, and runs the sample. It includes and builds multiple projects. @@ -55,4 +67,4 @@ Docs and More Information: * [microsoft/aspnet](https://hub.docker.com/r/microsoft/aspnet/) for ASP.NET Web Forms and MVC images. * [microsoft/dotnet-framework](https://hub.docker.com/r/microsoft/dotnet-framework/) for .NET Framework images. * [microsoft/dotnet-framework-samples](https://hub.docker.com/r/microsoft/dotnet-framework-samples/) for .NET Framework and ASP.NET sample images. -* [microsoft/wcf](https://hub.docker.com/r/microsoft/wcf) for WCF images. \ No newline at end of file +* [microsoft/wcf](https://hub.docker.com/r/microsoft/wcf) for WCF images.