From 5c83d1c57852f3bf3cd1e9484d42365c279bd4fb Mon Sep 17 00:00:00 2001 From: Florian Woerner Date: Wed, 20 Sep 2017 19:26:01 +0200 Subject: [PATCH] Add port option in the example without a Dockerfile (#1008) * Add port option in the example without a Dockerfile Add '-p 80:80' to the example without a Dockerfile. This expose the port 80 so that users can conect to the server through a web client. --- httpd/content.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpd/content.md b/httpd/content.md index a962a1452..5f1580d1c 100644 --- a/httpd/content.md +++ b/httpd/content.md @@ -29,7 +29,7 @@ $ docker run -dit --name my-running-app my-apache2 If you don't want to include a `Dockerfile` in your project, it is sufficient to do the following: ```console -$ docker run -dit --name my-apache-app -v "$PWD":/usr/local/apache2/htdocs/ httpd:2.4 +$ docker run -dit --name my-apache-app -p 8080:80 -v "$PWD":/usr/local/apache2/htdocs/ httpd:2.4 ``` ### Configuration