Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Trusted Docker Image for Nginx

This image contains a basic install of nginx-extras.


Create an nginx configuration directory on the host at /etc/nginx,
then configure nginx to meet your needs.

You can easily create the default configuration like so.

mkdir /etc/nginx
git clone
cp -R ./docker-nginx/nginx_conf/* /etc/nginx
rm -rf ./docker-nginx

Starting the container

sudo docker run --name nginx -d -p 80:80 -p 443:443 -v /var/log -v /etc/nginx:/etc/nginx:r hopsoft/nginx

Reconfigure & Restart

vim /etc/nginx/nginx.conf
vim /etc/nginx/sites-enabled/YOUR_SITE.conf
docker restart nginx

Building the image

Note: This is only for those wanting to build the image themselves.

git clone
cd docker-nginx
vagrant up
sudo docker build -t hopsoft/nginx /vagrant
Docker Pull Command
Source Repository