public interface CopyFileFromContainerCmd extends SyncDockerCmd<InputStream>
Modifier and Type | Interface and Description |
---|---|
static interface |
CopyFileFromContainerCmd.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() |
String |
getHostPath() |
String |
getResource() |
CopyFileFromContainerCmd |
withContainerId(String containerId) |
CopyFileFromContainerCmd |
withHostPath(String hostPath) |
CopyFileFromContainerCmd |
withResource(String resource) |
@CheckForNull String getContainerId()
@CheckForNull String getHostPath()
@CheckForNull String getResource()
CopyFileFromContainerCmd withContainerId(@Nonnull String containerId)
CopyFileFromContainerCmd withHostPath(String hostPath)
CopyFileFromContainerCmd withResource(@Nonnull String resource)
InputStream exec() throws NotFoundException
InputStream
to prevent connection leaks.exec
in interface SyncDockerCmd<InputStream>
NotFoundException
- No such containerCopyright © 2021. All rights reserved.