Using logfiles

Changes to the examples

Commands

docker container run --rm --name c1 -p 80:80 jfahrer/nginx:latest
docker container exec c1 tail /var/log/nginx/access.log
docker image build -t jfahrer/nginx:latest .
docker container run --rm --name c1 -p 80:80 jfahrer/nginx:latest

Producing logs

Logging errors