From bf5147aa6a3cefdee0b23bff5d3f113e2d4e2d5a Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Mon, 22 Aug 2016 14:52:21 -0700 Subject: [PATCH] Adjust "httpd" examples to use "-d" ("caught SIGWINCH, shutting down gracefully" on terminal resize) --- httpd/content.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httpd/content.md b/httpd/content.md index 9c03ace8f..bc8c77760 100644 --- a/httpd/content.md +++ b/httpd/content.md @@ -21,7 +21,7 @@ Then, run the commands to build and run the Docker image: ```console $ docker build -t my-apache2 . -$ docker run -it --rm --name my-running-app my-apache2 +$ docker run -dit --name my-running-app my-apache2 ``` ### Without a `Dockerfile` @@ -29,7 +29,7 @@ $ docker run -it --rm --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 -it --rm --name my-apache-app -v "$PWD":/usr/local/apache2/htdocs/ httpd:2.4 +$ docker run -dit --name my-apache-app -v "$PWD":/usr/local/apache2/htdocs/ httpd:2.4 ``` ### Configuration