github.com/khulnasoft/cli@v0.0.0-20240402070845-01bcad7beefa/docs/reference/commandline/logs.md (about)

     1  # docker logs
     2  
     3  <!---MARKER_GEN_START-->
     4  Fetch the logs of a container
     5  
     6  ### Aliases
     7  
     8  `docker container logs`, `docker logs`
     9  
    10  ### Options
    11  
    12  | Name                 | Type     | Default | Description                                                                                        |
    13  |:---------------------|:---------|:--------|:---------------------------------------------------------------------------------------------------|
    14  | `--details`          |          |         | Show extra details provided to logs                                                                |
    15  | `-f`, `--follow`     |          |         | Follow log output                                                                                  |
    16  | `--since`            | `string` |         | Show logs since timestamp (e.g. `2013-01-02T13:23:37Z`) or relative (e.g. `42m` for 42 minutes)    |
    17  | `-n`, `--tail`       | `string` | `all`   | Number of lines to show from the end of the logs                                                   |
    18  | `-t`, `--timestamps` |          |         | Show timestamps                                                                                    |
    19  | `--until`            | `string` |         | Show logs before a timestamp (e.g. `2013-01-02T13:23:37Z`) or relative (e.g. `42m` for 42 minutes) |
    20  
    21  
    22  <!---MARKER_GEN_END-->
    23