Wie starte ich apache2 neu, ohne den Docker-Container zum Absturz zu bringen?
Ich benutze als Basis dasphp docker container mit dem Tag:
php:5.6-apache
Wenn ich versuche, den Apache2 im Container neu zu starten, stoppt der Container:
root@phalconapp:/var/www/html# service apache2 restart
Restarting web server: apache2Terminated
root@phaclonapp:/var/www/html#
me@myLocalComputer:
Wie starte ich apache2 neu, ohne den Container zu stoppen?
Ich möchte mit dem Container herumspielen und ihn anpassen, bevor ich meine Änderungen in die Docking-Datei übernehme. Ich möchte eine Erweiterung installieren und muss Apache neu starten, damit die Änderungen wirksam werden.
Dies ist die Protokolldatei über:
Attaching to dltasklight_phlaconapp_1
phlaconapp_1 | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
phlaconapp_1 | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
phlaconapp_1 | [Mon May 30 10:19:24.556154 2016] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.10 (Debian) PHP/5.6.22 configured -- resuming normal operations
phlaconapp_1 | [Mon May 30 10:19:24.556181 2016] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
phlaconapp_1 | [Mon May 30 10:21:11.754993 2016] [mpm_prefork:notice] [pid 1] AH00169: caught SIGTERM, shutting down
dltasklight_phlaconapp_1 exited with code 0