return err
}
- // Start container but do not run /script yet. We need a way to a) sleep
- // in case of an error so the user can analyze the failure and b) detect
- // when /script terminates. The simplest solution is to run /script using
- // exec while the container just sleeps forever.
+ // Start container but do not run the script yet. We need a way to a)
+ // sleep in case of an error so the user can analyze the failure and b)
+ // detect when the script terminates. The simplest solution is to run the
+ // script using exec while the container just sleeps forever.
cmd := exec.Command("podman", "run", "--rm", "--detach",
"--pull", "newer",
"--log-driver", "none", // don't log to journal