diff options
Diffstat (limited to 'Services/apache/README.md')
-rw-r--r-- | Services/apache/README.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Services/apache/README.md b/Services/apache/README.md index ae07abb..b42fdd0 100644 --- a/Services/apache/README.md +++ b/Services/apache/README.md @@ -4,6 +4,12 @@ This container run apache on fedora server. ## Running from docker registry docker run -d -p 80:80 --name="apache" startx/sv-apache + # when used with a volume container (run data container, then run service) + docker run -d -v /var/www/html -v /var/log/httpd --name apache-data startx/sv-apache echo "Data container for apache" + docker run -d -p 80:80 --volumes-from apache-data --name="apache" startx/sv-apache + # when used in a linked container + docker run -d --name="apache" startx/sv-apache + docker run -d -p 80:80 --name="apache2" --link apache:apache startx/sv-apache ## Build and run from local Dockerfile ### Building docker image |