Docs about viewing container logs

Change-Id: I25e7d9337bd2e9cbe2f2e3b0b80c787c8b96619d
This commit is contained in:
Jiri Stransky 2017-06-13 14:57:45 +02:00
parent 36f4bb94e5
commit 5a0d36f6e7

View File

@ -16,6 +16,19 @@ monitor the output of the command below::
.. _debug-containers:
Viewing container logs
----------------------
You can view the output of the main process running in a container by running::
$ docker logs $CONTAINER_ID_OR_NAME
Ideally all containerized processes would log everything to
stdout/stderr and the above command would suffice. Not all services
are quite there yet, so we export traditional logs from containers
into the `/var/log/containers` directory on the host, where you can
look at them.
Debugging container failures
----------------------------