浏览代码

Make it more newbie friendly

Added port map -p 8080:80 to a docker run command
Anded a link to localhost:8080
So there will be feedback
Wong Heung Sang 7 年之前
父节点
当前提交
a72d10ffbb
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      httpd/content.md

+ 3 - 1
httpd/content.md

@@ -21,9 +21,11 @@ Then, run the commands to build and run the Docker image:
 
 ```console
 $ docker build -t my-apache2 .
-$ docker run -dit --name my-running-app my-apache2
+$ docker run -dit --name my-running-app -p 8080:80 my-apache2
 ```
 
+Visit http://localhost:8080 and you will see It works!
+
 ### Without a `Dockerfile`
 
 If you don't want to include a `Dockerfile` in your project, it is sufficient to do the following: