Nginx Pi Demo

This is carlpaton/nginx-pi-demo:latest and is a docker image used with my post on Raspberry Pi Cluster Swarm to simply show which node responded to the request.

Nginx Pi Demo

All of the below was based on the amazing work at docs.nginx.com and docker.com. I created this image as follows on one of my Raspberry PI’s to ensure it works for ARM.

  1. created default.conf, index.html and Dockerfile

  2. build the image

1
docker build -t webserver .
  1. test the image
1
docker run -it --rm -d -p 100:80 --name web webserver
  1. login to docker
1
docker login
  1. tag the image
1
docker tag webserver carlpaton/nginx-pi-demo
  1. ensure the tagged image carlpaton/nginx-pi-demo exists
1
docker images
  1. push the image
1
docker push carlpaton/nginx-pi-demo
  1. Cleanup
1
2
docker kill web
docker rmi webserver

References