public class DockerExecCommand extends DockerCommand
Encapsulates the docker exec command and its command line arguments.
| Constructor and Description |
|---|
DockerExecCommand(String containerName) |
| Modifier and Type | Method and Description |
|---|---|
DockerExecCommand |
addExecCommand(List<String> commandInContainer)
Add the command to run from inside container.
|
String |
getCommandWithArguments()
Get the full command.
|
addCommandArguments, getCommandOptionpublic DockerExecCommand(String containerName)
public DockerExecCommand addExecCommand(List<String> commandInContainer)
Add the command to run from inside container.
commandInContainer - the command to run from inside containerpublic String getCommandWithArguments()
Get the full command.
getCommandWithArguments in class DockerCommandCopyright © 2021 The Apache Software Foundation. All rights reserved.