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, getCommandOption
public 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 DockerCommand
Copyright © 2022 The Apache Software Foundation. All rights reserved.