You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
flags.IntVar(&opts.index, "index", 0, "index of the container if service has multiple replicas")
65
-
flags.StringVar(&opts.since, "since", "", "Show logs since timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes)")
66
-
flags.StringVar(&opts.until, "until", "", "Show logs before a timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes)")
65
+
flags.StringVar(&opts.since, "since", "", "Show logs since timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes). Accepts the same formats as `docker container logs --since`.")
66
+
flags.StringVar(&opts.until, "until", "", "Show logs before a timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes). Accepts the same formats as `docker container logs --until`.")
|`--dry-run`|`bool`|| Execute command in dry run mode |
11
+
|`-f`, `--follow`|`bool`|| Follow log output |
12
+
|`--index`|`int`|`0`| index of the container if service has multiple replicas |
13
+
|`--no-color`|`bool`|| Produce monochrome output |
14
+
|`--no-log-prefix`|`bool`|| Don't print prefix in logs |
15
+
|`--since`|`string`|| Show logs since timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes). Accepts the same formats as `docker container logs --since`.|
16
+
|`-n`, `--tail`|`string`|`all`| Number of lines to show from the end of the logs for each container |
17
+
|`-t`, `--timestamps`|`bool`|| Show timestamps |
18
+
|`--until`|`string`|| Show logs before a timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes). Accepts the same formats as `docker container logs --until`.|
Copy file name to clipboardExpand all lines: docs/reference/docker_compose_logs.yaml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ options:
49
49
- option: since
50
50
value_type: string
51
51
description: |
52
-
Show logs since timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes)
52
+
Show logs since timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes). Accepts the same formats as `docker container logs --since`.
53
53
deprecated: false
54
54
hidden: false
55
55
experimental: false
@@ -82,7 +82,7 @@ options:
82
82
- option: until
83
83
value_type: string
84
84
description: |
85
-
Show logs before a timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes)
85
+
Show logs before a timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes). Accepts the same formats as `docker container logs --until`.
0 commit comments