GrahamDumpleton / mod_wsgi-docker

Docker images for Apache/mod_wsgi.
Apache License 2.0
72 stars 36 forks source link

: "httpd (pid 7) already running" #16

Open adroffner opened 7 years ago

adroffner commented 7 years ago

docker-compose sometimes has an abnormal shut down. I see something like httpd (pid 7) already running. (Full disclosure: I made a centos port of your mod_wsgi Docker, and the issue might not be in your code.)

A php Docker project fixes this by deleting the PID file before starting. Assuming Apache runs in the foreground, this should be all right.

See thes issue links:

GrahamDumpleton commented 7 years ago

The only way that might be possible is if a stopped container was turned into an image and run again. That shouldn't happen under normal circumstances. What is the docker-compose configuration look like?