I have this at the end of Dockerfile:
ENTRYPOINT service apache2 start
I get this logged:
* Starting Apache httpd web server apache2
and then my container will exit – it shouldn’t be an error, I just think the container exits because the process is a daemon. Is there a way to keep it open?
2
Answers
So I can keep the container alive with:
but I don’t know how to get the stdout/stderr from Apache to stdout/stderr of the Docker container, anybody know? I can confirm apache is running if I keep the container alive.
I found this example too:
but I can’t find the path to my apache2 executable.
So this should be the correct answer:
that is, if you installed apache with: