mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
explain since format and give examples
Signed-off-by: tronicum <tronicum@user.github.com>
This commit is contained in:
parent
e9a69316b8
commit
519c35889e
2 changed files with 3 additions and 3 deletions
|
@ -44,7 +44,7 @@ func NewLogsCommand(dockerCli *command.DockerCli) *cobra.Command {
|
||||||
|
|
||||||
flags := cmd.Flags()
|
flags := cmd.Flags()
|
||||||
flags.BoolVarP(&opts.follow, "follow", "f", false, "Follow log output")
|
flags.BoolVarP(&opts.follow, "follow", "f", false, "Follow log output")
|
||||||
flags.StringVar(&opts.since, "since", "", "Show logs since timestamp")
|
flags.StringVar(&opts.since, "since", "", "Show logs since timestamp (e.g. 2013-01-02T13:23:37) or relative (e.g. 42m for 42 minutes)")
|
||||||
flags.BoolVarP(&opts.timestamps, "timestamps", "t", false, "Show timestamps")
|
flags.BoolVarP(&opts.timestamps, "timestamps", "t", false, "Show timestamps")
|
||||||
flags.BoolVar(&opts.details, "details", false, "Show extra details provided to logs")
|
flags.BoolVar(&opts.details, "details", false, "Show extra details provided to logs")
|
||||||
flags.StringVar(&opts.tail, "tail", "all", "Number of lines to show from the end of the logs")
|
flags.StringVar(&opts.tail, "tail", "all", "Number of lines to show from the end of the logs")
|
||||||
|
|
|
@ -24,7 +24,7 @@ Options:
|
||||||
--details Show extra details provided to logs
|
--details Show extra details provided to logs
|
||||||
-f, --follow Follow log output
|
-f, --follow Follow log output
|
||||||
--help Print usage
|
--help Print usage
|
||||||
--since string Show logs since timestamp
|
--since string Show logs since timestamp (e.g. 2013-01-02T13:23:37) or relative (e.g. 42m for 42 minutes)
|
||||||
--tail string Number of lines to show from the end of the logs (default "all")
|
--tail string Number of lines to show from the end of the logs (default "all")
|
||||||
-t, --timestamps Show timestamps
|
-t, --timestamps Show timestamps
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue