Sign inSign up

andrefernandes/docker-nginx

By andrefernandes

Updated almost 11 years ago

Image
0

170

andrefernandes/docker-nginx repository overview

docker-nginx

Base CentOS 7 with nginx.

Based on the official "dockerfile/nginx" image and with bits from "internavenue/centos-nginx"

This is just a plain nginx image meant for reuse. It exposes the same volumes as the original official nginx image, but is based on CentOS 7.

Useful scripts
  • build.sh : builds the image locally (docker build)
  • runbash.sh : convenient way to run commands on a new container (fast-food, auto-destroy) or even to just open a bash shell to play.
  • runweb.sh : runs nginx container as daemon.
  • quickweb.sh : you can use it to launch a quick self-service, fast-food web server that serves the current path.
Some nice tests:

Open bash:

./runbash.sh
bash-4.2# echo Wheeee

Show nginx version:

./runbash.sh nginx -v
nginx version: nginx/1.6.1
Volumes

Several volumes are exposed in order to permit reuse in several ways. Feel free to toy around with it.

Tag summary

Content type

Image

Digest

sha256:f0c3970de

Size

102.2 MB

Last updated

almost 11 years ago

docker pull andrefernandes/docker-nginx