package infra

import (
	"fmt"
	"os/exec"
	"strings"
)

// DockerStartContainer inicia un contenedor existente por nombre o ID.
func DockerStartContainer(nameOrID string) error {
	out, err := exec.Command("docker", "start", nameOrID).CombinedOutput()
	if err != nil {
		return fmt.Errorf("docker start %s: %s", nameOrID, strings.TrimSpace(string(out)))
	}
	return nil
}
