Sign inSign up

polinux/httpd

By polinux

Updated almost 6 years ago

Apache in a Docker (Supervisor - CentOS 7 & Alpine)

Image
1

10K+

polinux/httpd repository overview

Apache in a Docker with Supervisor (CentOS 7 & Alpine)

Build Status
GitHub Open Issues
Stars Fork
Docker Start Docker Pulls Docker Auto

Felling like supporting me in my projects use donate button. Thank You!

Docker Image with Apache server using polinux/supervisor docker image as base.

Environmental Variable
VariableDefaultSettingsInfo
LOG_LEVELinfoSpecify log level Apache should when started. Apache Log Levels
DEFAULT_CONFIGtrueUse default config provided by Apache package - Change to false when using custom config
Usage
Basic
docker run \
  -d \
  --name httpd \
  -p 80:80 \
  polinux/httpd
Set log level to debug
docker run \
  -d \
  --name httpd \
  -p 80:80 \
  -e LOG_LEVEL="debug" \
  polinux/httpd
Build
docker build -t polinux/httpd .

Docker troubleshooting

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}'

Author

Przemyslaw Ozgo ([email protected])

Tag summary

Content type

Image

Digest

Size

181.8 MB

Last updated

almost 6 years ago

docker pull polinux/httpd