From 99261e79a846bcd0b394dee0713ca2a66da43c1f Mon Sep 17 00:00:00 2001 From: Carl Sargunar Date: Thu, 7 Apr 2022 14:29:47 +0100 Subject: [PATCH 1/5] Update default port number to 9080 --- README.md | 2 +- docs/tutorial/index.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3a9ec1a..a66b757 100644 --- a/README.md +++ b/README.md @@ -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: ```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). diff --git a/docs/tutorial/index.md b/docs/tutorial/index.md index 601b838..d2aff6e 100644 --- a/docs/tutorial/index.md +++ b/docs/tutorial/index.md @@ -9,20 +9,20 @@ Let's first explain the command that you just ran. In case you forgot, here's the command: ```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: - `-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 !!! info "Pro tip" You can combine single character flags to shorten the full command. 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 From 6fc21f8690edd77dc8daac5f528971cc9824a602 Mon Sep 17 00:00:00 2001 From: Carl Sargunar Date: Thu, 7 Apr 2022 14:44:02 +0100 Subject: [PATCH 2/5] Added additional info --- docs/tutorial/index.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/tutorial/index.md b/docs/tutorial/index.md index d2aff6e..3312f43 100644 --- a/docs/tutorial/index.md +++ b/docs/tutorial/index.md @@ -18,6 +18,16 @@ You'll notice a few flags being used. Here's some more info on them: - `-p 9080:80` - map port 9080 of the host to port 80 in the container - `docker/getting-started` - the image to use +!!! info "Deep Dive" + One thing you may come across if you already have development environments + set-up is that yoiu may be using ports already. By using port 9080 there's a + good chance nothing will conflict. If you have port 9080 used by something + you can change that port number by changing the -p. E.g. to use port 9999 + ``` + docker run -d -p 9999:80 docker/getting-started + ``` + + !!! info "Pro tip" You can combine single character flags to shorten the full command. As an example, the command above could be written as: From 4466c481ba5df2650780797f31fb8dc29c56161b Mon Sep 17 00:00:00 2001 From: Carl Sargunar Date: Thu, 7 Apr 2022 14:52:10 +0100 Subject: [PATCH 3/5] Reworded --- docs/tutorial/index.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/tutorial/index.md b/docs/tutorial/index.md index 3312f43..93216e4 100644 --- a/docs/tutorial/index.md +++ b/docs/tutorial/index.md @@ -20,8 +20,10 @@ You'll notice a few flags being used. Here's some more info on them: !!! info "Deep Dive" One thing you may come across if you already have development environments - set-up is that yoiu may be using ports already. By using port 9080 there's a - good chance nothing will conflict. If you have port 9080 used by something + set-up is that you may be using ports already. Port 80 is frequently blocked + by IIs in Windows. By using port 9080 there's a good chance nothing will conflict. + + If you have port 9080 used by something you can change that port number by changing the -p. E.g. to use port 9999 ``` docker run -d -p 9999:80 docker/getting-started From c0fec7e34bc2e65936fe7788ad0f3b0a258dd6c4 Mon Sep 17 00:00:00 2001 From: Carl Sargunar Date: Thu, 7 Apr 2022 14:52:57 +0100 Subject: [PATCH 4/5] Formatting --- docs/tutorial/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial/index.md b/docs/tutorial/index.md index 93216e4..fff7bee 100644 --- a/docs/tutorial/index.md +++ b/docs/tutorial/index.md @@ -23,8 +23,8 @@ You'll notice a few flags being used. Here's some more info on them: set-up is that you may be using ports already. Port 80 is frequently blocked by IIs in Windows. By using port 9080 there's a good chance nothing will conflict. - If you have port 9080 used by something - you can change that port number by changing the -p. E.g. to use port 9999 + If you have port 9080 used by something you can change that port number by + changing the -p. E.g. to use port 9999 ``` docker run -d -p 9999:80 docker/getting-started ``` From 982575f506c9632222cf33b0f7009b888d299f11 Mon Sep 17 00:00:00 2001 From: Carl Sargunar Date: Thu, 7 Apr 2022 14:54:00 +0100 Subject: [PATCH 5/5] wording --- docs/tutorial/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial/index.md b/docs/tutorial/index.md index fff7bee..7dde8e6 100644 --- a/docs/tutorial/index.md +++ b/docs/tutorial/index.md @@ -23,8 +23,8 @@ You'll notice a few flags being used. Here's some more info on them: set-up is that you may be using ports already. Port 80 is frequently blocked by IIs in Windows. By using port 9080 there's a good chance nothing will conflict. - If you have port 9080 used by something you can change that port number by - changing the -p. E.g. to use port 9999 + If you have port 9080 used by another process, you can change to another port by + changing the -p argument. E.g. to use port 9999 ``` docker run -d -p 9999:80 docker/getting-started ```