cloud.localstack.docker.command.ExecCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of localstack-utils Show documentation
Show all versions of localstack-utils Show documentation
Java utilities for the LocalStack platform.
package cloud.localstack.docker.command;
import java.util.ArrayList;
import java.util.List;
public class ExecCommand extends Command {
private final String containerId;
public ExecCommand(String containerId) {
this.containerId = containerId;
}
public String execute(List command) {
List args = new ArrayList<>();
args.add("exec");
args.add(containerId);
args.addAll(command);
return dockerExe.execute(args);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy