ICE4 Install NGINX on Docker

 


Nginx install using docker

Install in Linux

sudo amazon-linux-extras install nginx1.12

sudo yum install nginx

 

Pull from docker hub

docker pull nginx:latest

  • required install docker

 

 

Reference: 

 


Nginx start using docker

 

docker run --restart="always" -d --name nginx \ -p 80:80 -p 443:443 \ -v /etc/nginx/nginx.conf:/etc/nginx/nginx.conf \ -v /var/log/nginx:/var/log/nginx \ -v /etc/nginx/conf.d/:/etc/nginx/conf.d/ \ nginx:latest