Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 620 Bytes

DOCKERHUB.md

File metadata and controls

29 lines (19 loc) · 620 Bytes

Purpose

A container demonstrating how to run nginx on a port passed in from an environment variable.

Source

GitHub

Docker

Pull it.

docker pull oneoffcoder/nginx-port:latest

Run it.

docker run -p 81:81 -e PORT=81 --rm oneoffcoder/nginx-port
docker run -p 82:82 -e PORT=82 --rm oneoffcoder/nginx-port
docker run -p 83:83 -e PORT=83 --rm oneoffcoder/nginx-port

Observe it.