Apache in a Docker (Supervisor - CentOS 7 & Alpine)
10K+
Felling like supporting me in my projects use donate button. Thank You!
Docker Image with Apache server using polinux/supervisor docker image as base.
| Variable | DefaultSettings | Info |
|---|---|---|
LOG_LEVEL | info | Specify log level Apache should when started. Apache Log Levels |
DEFAULT_CONFIG | true | Use default config provided by Apache package - Change to false when using custom config |
docker run \
-d \
--name httpd \
-p 80:80 \
polinux/httpd
docker run \
-d \
--name httpd \
-p 80:80 \
-e LOG_LEVEL="debug" \
polinux/httpd
docker build -t polinux/httpd .
Use docker command to see if all required containers are up and running:
$ docker ps
Check logs of httpd server container:
$ docker logs httpd
Sometimes you might just want to review how things are deployed inside a running container, you can do this by executing a bash shell through docker's exec command:
docker exec -ti httpd /bin/bash
History of an image and size of layers:
docker history --no-trunc=true polinux/httpd | tr -s ' ' | tail -n+2 | awk -F " ago " '{print $2}'
Przemyslaw Ozgo ([email protected])
Content type
Image
Digest
Size
181.8 MB
Last updated
almost 6 years ago
docker pull polinux/httpd