mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-03 20:55:14 +00:00
Update cheatsheets
This commit is contained in:
@@ -14,15 +14,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Print logs and follow them:
|
||||
|
||||
`docker logs -f {{container_name}}`
|
||||
`docker logs {{[-f|--follow]}} {{container_name}}`
|
||||
|
||||
- Print last 5 lines:
|
||||
|
||||
`docker logs {{container_name}} --tail {{5}}`
|
||||
`docker logs {{container_name}} {{[-n|--tail]}} {{5}}`
|
||||
|
||||
- Print logs and append them with timestamps:
|
||||
|
||||
`docker logs -t {{container_name}}`
|
||||
`docker logs {{[-t|--timestamps]}} {{container_name}}`
|
||||
|
||||
- Print logs from a certain point in time of container execution (i.e. 23m, 10s, 2013-01-02T13:23:37):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user