Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-18 00:18:35 +00:00
parent 9cdd033c95
commit a9720510d1
43 changed files with 362 additions and 132 deletions

View File

@@ -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):