Update default port number to 9080

This commit is contained in:
Carl Sargunar 2022-04-07 14:29:47 +01:00
parent 798c396e89
commit 99261e79a8
2 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ into depth, it covers the following topics:
If you wish to run the tutorial, you can use the following command after installing Docker Desktop: If you wish to run the tutorial, you can use the following command after installing Docker Desktop:
```bash ```bash
docker run -d -p 80:80 docker/getting-started docker run -d -p 9080:80 docker/getting-started
``` ```
Once it has started, you can open your browser to [http://localhost](http://localhost). Once it has started, you can open your browser to [http://localhost](http://localhost).

View File

@ -9,20 +9,20 @@ Let's first explain the command that you just ran. In case you forgot,
here's the command: here's the command:
```cli ```cli
docker run -d -p 80:80 docker/getting-started docker run -d -p 9080:80 docker/getting-started
``` ```
You'll notice a few flags being used. Here's some more info on them: You'll notice a few flags being used. Here's some more info on them:
- `-d` - run the container in detached mode (in the background) - `-d` - run the container in detached mode (in the background)
- `-p 80:80` - map port 80 of the host to port 80 in the container - `-p 9080:80` - map port 9080 of the host to port 80 in the container
- `docker/getting-started` - the image to use - `docker/getting-started` - the image to use
!!! info "Pro tip" !!! info "Pro tip"
You can combine single character flags to shorten the full command. You can combine single character flags to shorten the full command.
As an example, the command above could be written as: As an example, the command above could be written as:
``` ```
docker run -dp 80:80 docker/getting-started docker run -dp 9080:80 docker/getting-started
``` ```
## The Docker Dashboard ## The Docker Dashboard