The container itself is the service, you should start Apache in the foreground. Take a look at the startup script of the official httpd image how they make it there. In addition to this they redirect the logs to stdout in the Dockerfile.
tekki
(Tekki)
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Start Apache when starting Container | 0 | 1938 | June 21, 2017 | |
| Docker ends running after initialization ( service apache2 start ) | 1 | 3085 | July 10, 2017 | |
| Dockerfile Alpine Linux apache2 ENTRYPOINT httpd starts but container quits with no error message | 1 | 11237 | July 8, 2017 | |
| Why apache container does not persist after starting with service command | 4 | 10887 | August 22, 2016 | |
| I can not start apache using entry point | 4 | 260 | May 18, 2025 |