From 709917df26cb21c7307a5abfd449e7839aaa8b1b Mon Sep 17 00:00:00 2001 From: Mike Dillon Date: Fri, 2 Oct 2015 09:10:04 -0700 Subject: [PATCH] Correct port mappings for Jetty docker run command --- jetty/content.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetty/content.md b/jetty/content.md index 35d146e1a..b0d89e501 100644 --- a/jetty/content.md +++ b/jetty/content.md @@ -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: ```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.