DockerExecCommand, DockerImagesCommand, DockerInspectCommand, DockerKillCommand, DockerLoadCommand, DockerPullCommand, DockerRmCommand, DockerRunCommand, DockerStartCommand, DockerStopCommand, DockerVolumeCommand@Private
@Unstable
public abstract class DockerCommand
extends java.lang.Object
| Modifier | Constructor | Description |
|---|---|---|
protected |
DockerCommand(java.lang.String command) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
addCommandArguments(java.lang.String key,
java.lang.String value) |
Add command commandWithArguments - this method is only meant for use by
sub-classes.
|
java.lang.String |
getCommandOption() |
Returns the docker sub-command string being used
e.g 'run'.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getDockerCommandWithArguments() |
|
PrivilegedOperation |
preparePrivilegedOperation(DockerCommand dockerCommand,
java.lang.String containerName,
java.util.Map<java.lang.String,java.lang.String> env,
Context nmContext) |
Prepare the privileged operation object that will be used to invoke
the container-executor.
|
void |
setClientConfigDir(java.lang.String clientConfigDir) |
Add the client configuration directory to the docker command.
|
java.lang.String |
toString() |
public final java.lang.String getCommandOption()
protected final void addCommandArguments(java.lang.String key,
java.lang.String value)
key - name of the key to be addedvalue - value of the keypublic java.util.Map<java.lang.String,java.util.List<java.lang.String>> getDockerCommandWithArguments()
public java.lang.String toString()
toString in class java.lang.Objectpublic void setClientConfigDir(java.lang.String clientConfigDir)
clientConfigDir - - directory containing the docker client config.public PrivilegedOperation preparePrivilegedOperation(DockerCommand dockerCommand, java.lang.String containerName, java.util.Map<java.lang.String,java.lang.String> env, Context nmContext) throws ContainerExecutionException
dockerCommand - Specific command to be run by docker.containerName - env - nmContext - ContainerExecutionExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.