Skip to content

Commit

Permalink
harmonia: updates to port sharing (#21002)
Browse files Browse the repository at this point in the history
Fixes to the port-forwarding and port-sharing examples
  • Loading branch information
nicksieger authored Sep 26, 2024
1 parent 56b86e5 commit e7715ef
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions content/manuals/harmonia/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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.

Expand Down

0 comments on commit e7715ef

Please sign in to comment.