Class DockerExecCommand

java.lang.Object
org.apache.storm.container.docker.DockerCommand
org.apache.storm.container.docker.DockerExecCommand

public class DockerExecCommand extends DockerCommand
Encapsulates the docker exec command and its command line arguments.
  • Constructor Details

    • DockerExecCommand

      public DockerExecCommand(String containerName)
  • Method Details

    • addExecCommand

      public DockerExecCommand addExecCommand(List<String> commandInContainer)
      Add the command to run from inside container.
      Parameters:
      commandInContainer - the command to run from inside container
      Returns:
      the self
    • getCommandWithArguments

      public String getCommandWithArguments()
      Get the full command.
      Overrides:
      getCommandWithArguments in class DockerCommand
      Returns:
      the full command