diff --git a/README.md b/README.md index 0145511..49953bf 100644 --- a/README.md +++ b/README.md @@ -27,3 +27,9 @@ This repository contains **Dockerfile** of [Nginx](http://nginx.org/) for [Docke docker run -d -p 80:80 -v :/etc/nginx/conf.d -v :/etc/nginx/certs -v :/var/log/nginx -v :/var/www/html dockerfile/nginx After few seconds, open `http://` to see the welcome page. + +#### Logging + +Access and error logs are sent to the Docker log collector by default by linking them to stdout and stderr, which causes all messages from both logs to be stored in the file/var/lib/docker/containers/\/\-json.log on the Docker Host. To access the logs from the command line : + + docker logs