mirror of https://github.com/docker/docs.git
harmonia: updates to port sharing (#21002)
Fixes to the port-forwarding and port-sharing examples
This commit is contained in:
parent
56b86e5d26
commit
e7715efccb
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue