From a72d10ffbb6f8104b65a0d09fece4dcf3d35060c Mon Sep 17 00:00:00 2001 From: Wong Heung Sang <35202375+whs-dot-hk@users.noreply.github.com> Date: Sat, 19 May 2018 06:39:26 +0800 Subject: [PATCH] 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 --- httpd/content.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/httpd/content.md b/httpd/content.md index c34b70d36..d23f7d417 100644 --- a/httpd/content.md +++ b/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: