cloud.localstack.docker.command.StopCommand 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.
The newest version!
package cloud.localstack.docker.command;
import java.util.Arrays;
public class StopCommand extends Command {
private final String containerId;
public StopCommand(String containerId) {
this.containerId = containerId;
}
public void execute() {
dockerExe.execute(Arrays.asList("stop", containerId));
}
}