Correct port mappings for Jetty docker run command

This commit is contained in:
Mike Dillon 2015-10-02 09:10:04 -07:00
parent 8538b31b48
commit 709917df26
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ $ docker run -d %%REPO%%
You can test it by visiting `http://container-ip:8080` or `https://container-ip:8443/` in a browser. To expose your Jetty server to outside requests, use a port mapping as follows: You can test it by visiting `http://container-ip:8080` or `https://container-ip:8443/` in a browser. To expose your Jetty server to outside requests, use a port mapping as follows:
```console ```console
$ docker run -d -p 8888:8080 %%REPO%% $ docker run -d -p 80:8080 -p 443:8443 %%REPO%%
``` ```
This will map port 8080 inside the container as port 80 on the host and container port 8443 as host port 443. You can then go to `http://host-ip` or `https://host-ip` in a browser. This will map port 8080 inside the container as port 80 on the host and container port 8443 as host port 443. You can then go to `http://host-ip` or `https://host-ip` in a browser.