From 4d1e1ab6ec68a15afe8847f92e4d1bcc2a3c832b Mon Sep 17 00:00:00 2001 From: Dhanashree Jadhav Date: Sun, 1 Feb 2026 17:54:35 +0530 Subject: [PATCH] Enhance Docker run instructions with port mapping note Added a note about port mapping for Docker container. --- docs/tutorial/our-application/index.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/tutorial/our-application/index.md b/docs/tutorial/our-application/index.md index edf6f256b..3ad954005 100644 --- a/docs/tutorial/our-application/index.md +++ b/docs/tutorial/our-application/index.md @@ -78,7 +78,15 @@ command (remember that from earlier?). ```bash docker run -dp 3000:3000 getting-started ``` + > 💡 **Note:** + > If port `3000` is already in use on your system, you can map the container to a different host port. + For example: + + ```bash + docker run -dp 3001:3000 getting-started + ``` + Remember the `-d` and `-p` flags? We're running the new container in "detached" mode (in the background) and creating a mapping between the host's port 3000 to the container's port 3000. Without the port mapping, we wouldn't be able to access the application.