Skip to content

Latest commit

 

History

History

nginx

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

dockerfiles-centos-user-adderable

Nginx install : Only for Docker

Building & Running

Copy the sources to your docker host and build the container, and to run.

	docker build --rm -t nowage/nginx .
	docker run -it --name n1 -p 8888:80 nowage/nginx

Get the port that the container is listening on:

# docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
ad2ad96e4b2f        nowage/nginx      "/bin/bash"         7 seconds ago       Up 6 seconds                            n1

To test, ("nowage" is username. )

	open 127.0.0.1:8888

To Rollback

    docker rm n1 -f
    docker rmi nowage/nginx