mirror of https://github.com/docker/docs.git
fix typo (#16120)
This commit is contained in:
parent
f66dd2ff26
commit
4b927b0e64
|
@ -30,7 +30,7 @@ As you'll see, the connection to our server was refused. This means, we were not
|
|||
|
||||
To stop the container, press Ctrl-C. This will return you to the terminal prompt.
|
||||
|
||||
To publish a port for our container, we’ll use the `--publish` flag (`-p` for short) on the `docker run` command. The format of the `--publish` command is `[host port]:[container port]`. So, if we wanted to expose port 80 inside the container to port 5050 outside the container, we would pass `5000:80` to the `--publish` flag. Run the container using the following command:
|
||||
To publish a port for our container, we’ll use the `--publish` flag (`-p` for short) on the `docker run` command. The format of the `--publish` command is `[host port]:[container port]`. So, if we wanted to expose port 80 inside the container to port 5000 outside the container, we would pass `5000:80` to the `--publish` flag. Run the container using the following command:
|
||||
|
||||
```console
|
||||
$ docker run --publish 5000:80 dotnet-docker
|
||||
|
|
Loading…
Reference in New Issue