public interface AttachContainerCmd extends DockerCmd<InputStream>
Modifier and Type | Interface and Description |
---|---|
static interface |
AttachContainerCmd.Exec |
Modifier and Type | Method and Description |
---|---|
InputStream |
exec()
Its the responsibility of the caller to consume and/or close the
InputStream to prevent connection leaks. |
String |
getContainerId() |
boolean |
hasFollowStreamEnabled() |
boolean |
hasLogsEnabled() |
boolean |
hasStderrEnabled() |
boolean |
hasStdoutEnabled() |
boolean |
hasTimestampsEnabled() |
AttachContainerCmd |
withContainerId(String containerId) |
AttachContainerCmd |
withFollowStream()
|
AttachContainerCmd |
withFollowStream(boolean followStream)
Following the stream means the resulting
InputStream returned by exec() reads infinitely. |
AttachContainerCmd |
withLogs() |
AttachContainerCmd |
withLogs(boolean logs) |
AttachContainerCmd |
withStdErr() |
AttachContainerCmd |
withStdErr(boolean stderr) |
AttachContainerCmd |
withStdOut() |
AttachContainerCmd |
withStdOut(boolean stdout) |
AttachContainerCmd |
withTimestamps(boolean timestamps) |
String getContainerId()
boolean hasLogsEnabled()
boolean hasFollowStreamEnabled()
boolean hasTimestampsEnabled()
boolean hasStdoutEnabled()
boolean hasStderrEnabled()
AttachContainerCmd withContainerId(String containerId)
AttachContainerCmd withFollowStream()
AttachContainerCmd 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
!AttachContainerCmd withTimestamps(boolean timestamps)
AttachContainerCmd withStdOut()
AttachContainerCmd withStdOut(boolean stdout)
AttachContainerCmd withStdErr()
AttachContainerCmd withStdErr(boolean stderr)
AttachContainerCmd withLogs(boolean logs)
AttachContainerCmd withLogs()
InputStream exec() throws NotFoundException
InputStream
to prevent connection leaks.exec
in interface DockerCmd<InputStream>
NotFoundException
- No such containerCopyright © 2015. All Rights Reserved.