Reading logs

Commands

docker container run --rm --name c1 -p 80:80 nginx:latest
curl localhost
docker container run --rm --name c1 -p 80:80 -d nginx:latest
curl localhost
docker container logs c1
docker container logs -f c1
curl localhost

Verify it is PID1

Producing logs