All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cloud.localstack.docker.command.ExecCommand Maven / Gradle / Ivy

There is a newer version: 0.2.23
Show newest version
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