浏览代码

Correct port mappings for Jetty docker run command

Mike Dillon 10 年之前
父节点
当前提交
709917df26
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      jetty/content.md

+ 1 - 1
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.