Sign inSign up

ajnouri/nginx-farm

By ajnouri

•Updated almost 9 years ago

Docker image running farm of nginx containers. The image uses Docke in Docker image (jpetazzo/dind).

Image
0

1.1K

ajnouri/nginx-farm repository overview

⁠Nginx server farm using Docker-in-Docker

Originally forked from https://github.com/jpetazzo/dind⁠


Requires --privileged option Use with caution!
For more inf. look here: https://docs.docker.com/engine/reference/run/#/runtime-privilege-and-linux-capabilities⁠


⁠Instructions

Run a Docker in Docker container:

docker run --privileged -t -i --hostname dind ajnouri/nginx-farm

From inside Dind container, start n number of containers

./startfarm.sh <n>

The first time docker will pull nginx image and spawn n containers from

Get nginx server IPs:

id=$(docker ps | grep dind --format "{{.ID}}"
   
docker inspect -f '{{ .NetworkSettings.IPAddress }}' $id  

Tag summary

Content type

Image

Digest

Size

167.9 MB

Last updated

almost 9 years ago

docker pull ajnouri/nginx-farm