Print Docker container logs.
# To print logs from a container:
docker logs <container_name>
# To print logs and follow them:
docker logs -f <container_name>
# To print last 5 lines:
docker logs <container_name> --tail <5>
# To print logs and append them with timestamps:
docker logs -t <container_name>
# To print logs from a certain point in time of container execution (i.e. 23m, 10s, 2013-01-02T13:23:37):
docker logs <container_name> --until <time>