harmonia: updates to port sharing (#21002)

Fixes to the port-forwarding and port-sharing examples
This commit is contained in:
Nick Sieger 2024-09-26 04:25:30 -05:00 committed by GitHub
parent 56b86e5d26
commit e7715efccb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 8 deletions

View File

@ -82,7 +82,7 @@ You should see the following:
$ docker run -d -p 8080:80 nginx $ 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. 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: 3. Verify the running container:
- In the **Containers** tab in the Docker Dashboard, you should see your Nginx container listed. - 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: - 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">}} {{< tab name="Docker Desktop">}}
1. Make sure your Docker context is set to `cloudengine`. 1. Make sure your Docker context is set to `cloudengine`.
2. In your terminal, run the Nginx container: 2. In the Docker Dashboard, navigate to the **Containers** view.
```console 3. Select the **lock** icon in the **Ports** column of your running container next to `3000:3000`.
$ 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.
This creates a publicly accessible URL that you can share with teammates. 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. To view all shared ports for your Docker context, select the **Shared ports** icon in the bottom-right corner of the Docker Dashboard.