Copies the container logs into standard out/err, the same as the `docker logs` command. The container output to standard out will go to standard out, and standard err to standard err.
| Fields inherited from class | Fields |
|---|---|
class DefaultTask |
TASK_NAME, TASK_DESCRIPTION, TASK_GROUP, TASK_TYPE, TASK_DEPENDS_ON, TASK_OVERWRITE, TASK_ACTION, TASK_CONSTRUCTOR_ARGS |
| Type | Name and description |
|---|---|
Property<Boolean> |
followSet to true to follow the output, which will cause this task to block until the container exists. |
Property<Boolean> |
showTimestampsSet to the true to include a timestamp for each line in the output. |
Property<Date> |
sinceLimit the output to lines on or after the specified date. |
Writer |
sinkSink to write log output into. |
Property<Boolean> |
stdErrInclude standard err. |
Property<Boolean> |
stdOutInclude standard out. |
Property<Boolean> |
tailAllSet to true to copy all output since the container has started. |
Property<Integer> |
tailCountLimit the number of lines of existing output. |
| Constructor and description |
|---|
DockerLogsContainer
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected Date |
getInternalSince() |
|
void |
logAndProcessResponse(com.github.dockerjava.api.DockerClient dockerClient) |
|
void |
runRemoteCommand() |
Set to true to follow the output, which will cause this task to block until the container exists. Default is unspecified (docker defaults to false).
Set to the true to include a timestamp for each line in the output. Default is unspecified (docker defaults to false).
Limit the output to lines on or after the specified date. Default is unspecified (docker defaults to all lines).
Set to true to copy all output since the container has started. For long running containers or containers with a lot of output this could take a long time. This cannot be set if #tailCount is also set. Setting to false leaves the decision of how many lines to copy to docker. Default is unspecified (docker defaults to true).
Groovy Documentation