I created an image using a Dockerfile.
I started the container using the command
docker run container name
The container started successfully and httpd started with a warning message for ServerName and quit.
If I manually follow the steps in the Dockerfile the httpd runs without quitting.
There is no information in the error logs.
Providing the contents of the Dockerfile
RUN apk update
RUN apk upgrade
RUN apk add --no-cache apache2
RUN mkdir /run/apache2
WORKDIR /var/log/apache2
RUN touch access.log
RUN touch error.log
RUN chown root.wheel access.log
RUN chown root.wheel error.log
RUN chmod 0644 access.log
RUN chmod 0644 error.log