docker logs
Print container logs.
- Print logs from a container:
docker logs {container_name}
- Print logs and follow them:
docker logs -f {container_name}
docker logs {container_name} --tail {5}
- Print logs and append them with timestamps:
docker logs -t {container_name}
- 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}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).