Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Add example of how to show logs in docker containers
Browse files Browse the repository at this point in the history
  • Loading branch information
gene1wood committed Jul 10, 2019
1 parent 693d7ea commit bfc854d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/source/cloud_deployment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ To view logs on the ec2 instance
4. Tail logs from the container you'd like to examine with
::

# show both the access logs and the error logs
sudo docker logs --follow NAME_OF_CONTAINER
# show only the error logs
docker logs --follow NAME_OF_CONTAINER >/dev/null

where ``NAME_OF_CONTAINER`` is the container name or ID that you found in the
step above
Expand Down

0 comments on commit bfc854d

Please sign in to comment.