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> |
follow Set to true to follow the output, which will cause this task to block until the container exists. |
Property<Boolean> |
showTimestamps Set to the true to include a timestamp for each line in the output. |
Property<Date> |
since Limit the output to lines on or after the specified date. |
Writer |
sink Sink to write log output into. |
Property<Boolean> |
stdErr Include standard err. |
Property<Boolean> |
stdOut Include standard out. |
Property<Boolean> |
tailAll Set to true to copy all output since the container has started. |
Property<Integer> |
tailCount Limit 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