public interface LogContainerCmd extends AsyncDockerCmd<LogContainerCmd,Frame>
Modifier and Type | Interface and Description |
---|---|
static interface |
LogContainerCmd.Exec |
Modifier and Type | Method and Description |
---|---|
<T extends ResultCallback<Frame>> |
exec(T resultCallback) |
String |
getContainerId() |
Integer |
getSince() |
Integer |
getTail() |
Boolean |
hasFollowStreamEnabled() |
Boolean |
hasStderrEnabled() |
Boolean |
hasStdoutEnabled() |
Boolean |
hasTimestampsEnabled() |
LogContainerCmd |
withContainerId(String containerId) |
LogContainerCmd |
withFollowStream(Boolean followStream)
Following the stream means the resulting
InputStream returned by #exec() reads infinitely. |
LogContainerCmd |
withSince(Integer since) |
LogContainerCmd |
withStdErr(Boolean stderr) |
LogContainerCmd |
withStdOut(Boolean stdout) |
LogContainerCmd |
withTail(Integer tail) |
LogContainerCmd |
withTailAll() |
LogContainerCmd |
withTimestamps(Boolean timestamps) |
start
@CheckForNull String getContainerId()
@CheckForNull Integer getTail()
@CheckForNull Boolean hasFollowStreamEnabled()
@CheckForNull Boolean hasTimestampsEnabled()
@CheckForNull Boolean hasStdoutEnabled()
@CheckForNull Boolean hasStderrEnabled()
@CheckForNull Integer getSince()
LogContainerCmd withContainerId(@Nonnull String containerId)
LogContainerCmd withFollowStream(Boolean followStream)
InputStream
returned by #exec()
reads infinitely. So a
InputStream.read()
MAY BLOCK FOREVER as long as no data is streamed from the docker host to DockerClient
!LogContainerCmd withTimestamps(Boolean timestamps)
LogContainerCmd withStdOut(Boolean stdout)
LogContainerCmd withStdErr(Boolean stderr)
LogContainerCmd withTailAll()
LogContainerCmd withTail(Integer tail)
LogContainerCmd withSince(Integer since)
<T extends ResultCallback<Frame>> T exec(T resultCallback)
exec
in interface AsyncDockerCmd<LogContainerCmd,Frame>
com.github.dockerjava.api.NotFoundException
- No such containerCopyright © 2021. All rights reserved.