public interface CopyArchiveToContainerCmd extends SyncDockerCmd<Void>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
CopyArchiveToContainerCmd.Exec |
| Modifier and Type | Method and Description |
|---|---|
Void |
exec() |
String |
getContainerId() |
String |
getHostResource() |
String |
getRemotePath() |
InputStream |
getTarInputStream() |
boolean |
isDirChildrenOnly() |
boolean |
isNoOverwriteDirNonDir() |
CopyArchiveToContainerCmd |
withContainerId(String containerId)
Set container's id
|
CopyArchiveToContainerCmd |
withDirChildrenOnly(boolean dirChildrenOnly)
If this flag is set to true, all children of the local directory will be copied to the remote without the root directory.
|
CopyArchiveToContainerCmd |
withHostResource(String resource)
Set path to the resource on the host machine
|
CopyArchiveToContainerCmd |
withNoOverwriteDirNonDir(boolean noOverwriteDirNonDir)
If set to true then it will be an error if unpacking the given content would cause an existing directory to be replaced with a
non-directory and vice versa
|
CopyArchiveToContainerCmd |
withRemotePath(String remotePath) |
CopyArchiveToContainerCmd |
withTarInputStream(InputStream tarInputStream)
Set the tar input stream that will be uploaded to the container.
|
String getContainerId()
String getHostResource()
InputStream getTarInputStream()
boolean isNoOverwriteDirNonDir()
boolean isDirChildrenOnly()
CopyArchiveToContainerCmd withContainerId(String containerId)
containerId - id of the container to copy file toCopyArchiveToContainerCmd withHostResource(String resource)
resource - path to the resource on the host machineCopyArchiveToContainerCmd withTarInputStream(InputStream tarInputStream)
tarInputStream - the stream to upload to the containerCopyArchiveToContainerCmd withNoOverwriteDirNonDir(boolean noOverwriteDirNonDir)
noOverwriteDirNonDir - flag to know if non directory can be overwrittenCopyArchiveToContainerCmd withDirChildrenOnly(boolean dirChildrenOnly)
dirChildrenOnly - if root directory is ignoredString getRemotePath()
CopyArchiveToContainerCmd withRemotePath(String remotePath)
Void exec() throws NotFoundException
exec in interface SyncDockerCmd<Void>NotFoundExceptionCopyright © 2017. All Rights Reserved.