Public Repository

Last pushed: 4 months ago
Short Description
my build of Nginx.
Full Description

Supported tags and respective Dockerfile links

How to use this image

hosting some simple static content

$ docker run -d -p 8000:80 -v /some/content:/usr/share/nginx/html:ro --name my-custom-name petersong/nginx

  • put static-html-files to /some/content
  • exposing the port by -p 8000:80. Then you can hit http://localhost:8000 or http://host-ip:8000 in your browser.

complex configuration

$ docker run -d -p 8000:80 -v /some/content:/usr/share/nginx/html:ro -v /nginx/conf/path:/etc/nginx:ro --name my-custom-name petersong/nginx

  • set nginx configuration files in /nginx/conf/path
Docker Pull Command
Owner
petersong

Comments (0)