Docker image running farm of nginx containers. The image uses Docke in Docker image (jpetazzo/dind).
1.1K
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
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
Content type
Image
Digest
Size
167.9 MB
Last updated
almost 9 years ago
docker pull ajnouri/nginx-farm