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.
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?
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: