public interface AttachContainerCmd extends AsyncDockerCmd<AttachContainerCmd,Frame>
Modifier and Type | Interface and Description |
---|---|
static interface |
AttachContainerCmd.Exec |
Modifier and Type | Method and Description |
---|---|
String |
getContainerId() |
InputStream |
getStdin() |
Boolean |
hasFollowStreamEnabled() |
Boolean |
hasLogsEnabled() |
Boolean |
hasStderrEnabled() |
Boolean |
hasStdoutEnabled() |
Boolean |
hasTimestampsEnabled() |
AttachContainerCmd |
withContainerId(String containerId) |
AttachContainerCmd |
withFollowStream(Boolean followStream)
Following the stream means the resulting
InputStream returned by #exec() reads infinitely. |
AttachContainerCmd |
withLogs(Boolean logs) |
AttachContainerCmd |
withStdErr(Boolean stderr) |
AttachContainerCmd |
withStdIn(InputStream stdin) |
AttachContainerCmd |
withStdOut(Boolean stdout) |
AttachContainerCmd |
withTimestamps(Boolean timestamps) |
exec
@CheckForNull String getContainerId()
@CheckForNull Boolean hasLogsEnabled()
@CheckForNull Boolean hasFollowStreamEnabled()
@CheckForNull Boolean hasTimestampsEnabled()
@CheckForNull Boolean hasStdoutEnabled()
@CheckForNull Boolean hasStderrEnabled()
@CheckForNull InputStream getStdin()
AttachContainerCmd withContainerId(@Nonnull String containerId)
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(Boolean stdout)
AttachContainerCmd withStdErr(Boolean stderr)
AttachContainerCmd withStdIn(InputStream stdin)
AttachContainerCmd withLogs(Boolean logs)
Copyright © 2017. All Rights Reserved.