From 95b865c7c87efacf93e4ed181253b844d3b026b3 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Thu, 11 Feb 2016 08:28:57 -0800 Subject: [PATCH] Remove "-it" from Apache invocations of "docker run" (due to SIGWINCH killing Apache, by design) See https://bz.apache.org/bugzilla/show_bug.cgi?id=50669 for additional detail from upstream. --- php/content.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/content.md b/php/content.md index b7146e681..1dd8d57c3 100644 --- a/php/content.md +++ b/php/content.md @@ -51,7 +51,7 @@ Where `src/` is the directory containing all your php code. Then, run the comman ```console $ docker build -t my-php-app . -$ docker run -it --rm --name my-running-app my-php-app +$ docker run -d --name my-running-app my-php-app ``` We recommend that you add a custom `php.ini` configuration. `COPY` it into `/usr/local/etc/php` by adding one more line to the Dockerfile above and running the same commands to build and run: @@ -123,5 +123,5 @@ RUN curl -fsSL 'https://xcache.lighttpd.net/pub/Releases/3.2.0/xcache-3.2.0.tar. If you don't want to include a `Dockerfile` in your project, it is sufficient to do the following: ```console -$ docker run -p 80:80 -it --rm --name my-apache-php-app -v "$PWD":/var/www/html php:5.6-apache +$ docker run -d -p 80:80 --name my-apache-php-app -v "$PWD":/var/www/html php:5.6-apache ```