Skip to content

Instantly share code, notes, and snippets.

@OpenGG
Last active November 21, 2018 10:39
Show Gist options
  • Save OpenGG/66ec090d0fac23f0cebeba79ccf2148e to your computer and use it in GitHub Desktop.
Save OpenGG/66ec090d0fac23f0cebeba79ccf2148e to your computer and use it in GitHub Desktop.
Nginx quick test
mkdir html
mkdir config
# default conf
docker run --name tmp-nginx-container -d nginx
docker cp tmp-nginx-container:/etc/nginx/ config/
docker rm -f tmp-nginx-container
docker run \
--name my-nginx \
-p 80:80 \
-v $(pwd)/config:/etc/nginx:ro \
-v $(pwd)/html:/usr/share/nginx/html:ro \
-d \
nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment