From e7715efccb74af859b2d9b4f1e87663b4315bf4a Mon Sep 17 00:00:00 2001 From: Nick Sieger Date: Thu, 26 Sep 2024 04:25:30 -0500 Subject: [PATCH] harmonia: updates to port sharing (#21002) Fixes to the port-forwarding and port-sharing examples --- content/manuals/harmonia/_index.md | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/content/manuals/harmonia/_index.md b/content/manuals/harmonia/_index.md index 455e14bf1fa..3172749f951 100644 --- a/content/manuals/harmonia/_index.md +++ b/content/manuals/harmonia/_index.md @@ -82,7 +82,7 @@ You should see the following: $ docker run -d -p 8080:80 nginx ``` This maps the container's port `80` to the host's port `8080`. If port `8080` is already in use on your host, you can specify a different port. -2. View the Nginx welcome page. Navigate to [`http://localhost/`](http://localhost/). +2. View the Nginx welcome page. Navigate to [`http://localhost:8080/`](http://localhost:8080/). 3. Verify the running container: - In the **Containers** tab in the Docker Dashboard, you should see your Nginx container listed. - Alternatively, list all running containers in the cloud engine via the terminal: @@ -170,14 +170,10 @@ Project Harmonia takes advantage of [Synchronized file shares](/manuals/desktop/ {{< tab name="Docker Desktop">}} 1. Make sure your Docker context is set to `cloudengine`. -2. In your terminal, run the Nginx container: - ```console - $ docker run -d -p 8080:80 nginx - ``` -3. In the Docker Dashboard, navigate to the **Containers** view. -4. Select the **lock** icon in the **Ports** column of your running container. +2. In the Docker Dashboard, navigate to the **Containers** view. +3. Select the **lock** icon in the **Ports** column of your running container next to `3000:3000`. This creates a publicly accessible URL that you can share with teammates. -5. Select the **copy** icon, to copy this URL. +4. Select the **copy** icon, to copy this URL. To view all shared ports for your Docker context, select the **Shared ports** icon in the bottom-right corner of the Docker Dashboard.