Skip to content

Commit 04d5353

Browse files
committed
fix typo
1 parent bfa0ef4 commit 04d5353

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

learn-pr/azure/intro-to-containers/includes/3-exercise-deploy-docker-image-locally.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
A good starting point for building and running your own Docker images is to take an existing image from Docker Hub and run it locally on your computer.
22

3-
As a proof of concept for the company's applications, you decide to try running a sample image from Docker Hub. The image you've selected implements a basic .NET Core ASP.NET web app. Once you've established a process for deploying a Docker image, you'll be able to run one of your company's own web apps using Docker.
3+
As a proof of concept for the company's applications, you decide to try running a sample image from Docker Hub. The image you selected implements a basic .NET Core ASP.NET web app. Once you establish a process for deploying a Docker image, you're able to run one of your company's own web apps using Docker.
44

5-
In this exercise, you'll pull an image from Docker Hub and run it. You'll examine the local state of Docker to help understand the elements that are deployed. Finally, you'll remove the container and image from your computer.
5+
In this exercise, you pull an image from Docker Hub and run it. You examine the local state of Docker to help understand the elements that are deployed. Finally, you remove the container and image from your computer.
66

77
> [!IMPORTANT]
88
> This exercise takes place on your computer, not in Azure. You need a local installation of Docker to proceed with the exercise. Download: https://docs.docker.com/desktop/install/windows-install/
@@ -19,15 +19,15 @@ In this exercise, you'll pull an image from Docker Hub and run it. You'll examin
1919
docker pull mcr.microsoft.com/dotnet/samples:aspnetapp
2020
```
2121

22-
1. Enter the following code to verify that the image has been stored locally.
22+
1. Enter the following code to verify that the image was stored locally.
2323

2424
```bash
2525
docker image ls
2626
```
2727

2828
You should see a repository named *mcr.microsoft.com/dotnet/samples* with a tag of *aspnetapp*.
2929

30-
1. Enter the following code to start the sample app. The *-d* flag is to run it as a background, non-interactive app. The *-p* flag is to map port 8080 in the container that's created to port 8080 locally. This setting is intended to avoid conflicts with any web apps already running on your computer. The command will respond with a lengthy hexadecimal identifier for the instance.
30+
1. Enter the following code to start the sample app. The `-d` flag is to run it as a background, non-interactive app. The `p` flag is to map port 8080 in the container that's created to port 8080 locally. This setting is intended to avoid conflicts with any web apps already running on your computer. The command responds with a lengthy hexadecimal identifier for the instance.
3131
3232
```bash
3333
docker run -d -p 8080:8080 mcr.microsoft.com/dotnet/samples:aspnetapp
@@ -45,14 +45,14 @@ In this exercise, you'll pull an image from Docker Hub and run it. You'll examin
4545
docker ps
4646
```
4747
48-
The output should look similar to the following:
48+
The output should look similar to the following example:
4949
5050
```console
5151
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5252
96c851831ade mcr.microsoft.com/dotnet/samples:aspnetapp "dotnet aspnetapp.dll" 22 minutes ago Up 22 minutes 0.0.0.0:8080->80/tcp eager_montalcini
5353
```
5454
55-
The **COMMAND** field shows the container started by running the command *dotnet aspnetapp.dll*. This command invokes the .NET Core runtime to start the code in the aspnetapp.dll (the code for the sample web app). The *PORTS* field indicates that port 8080 in the image was mapped to port 8080 on your computer. The *STATUS* field shows the application is still running. Make a note of the container's *NAME*.
55+
The **COMMAND** field shows the container started by running the command *dotnet aspnetapp.dll*. This command invokes the .NET Core runtime to start the code in the aspnetapp.dll (the code for the sample web app). The *PORTS* field indicates that port 8080 in the image was mapped to port 80 on your computer. The *STATUS* field shows the application is still running. Make a note of the container's *NAME*.
5656

5757
1. Run the following command to stop the Docker container, replacing the placeholder `<NAME>` with the output name from the previous command.
5858

@@ -76,7 +76,7 @@ In this exercise, you'll pull an image from Docker Hub and run it. You'll examin
7676
docker container rm <NAME>
7777
```
7878
79-
1. Verify that the container has been removed by running the following command. The command should no longer list the container.
79+
1. Verify that the container was removed by running the following command. The command should no longer list the container.
8080
8181
```bash
8282
docker ps -a
@@ -94,7 +94,7 @@ In this exercise, you'll pull an image from Docker Hub and run it. You'll examin
9494
docker image rm mcr.microsoft.com/dotnet/samples:aspnetapp
9595
```
9696
97-
1. The output should list numerous items that have been untagged and deleted. Run the following command to list the images again and verify that the image for the *microsoft/dotnet-samples* web app has disappeared.
97+
1. The output should list numerous items that were untagged and deleted. Run the following command to list the images again and verify that the image for the *microsoft/dotnet-samples* web app has disappeared.
9898
9999
```bash
100100
docker image ls

0 commit comments

Comments
 (0)