Skip to content

Commit

Permalink
Handle the removal of containers in the pilot
Browse files Browse the repository at this point in the history
  • Loading branch information
schaefi committed Nov 24, 2024
1 parent 3fc963e commit f3f11b3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions flake-ctl/src/app_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,6 @@ impl AppConfig {
} else if attach {
container_config.runtime.as_mut().unwrap()
.attach = Some(attach);
} else {
// default: remove the container if no resume/attach is set
container_config.runtime.as_mut().unwrap()
.podman.as_mut().unwrap().push("--rm".to_string());
}
if let Some(run_as) = run_as {
container_config.runtime.as_mut().unwrap()
Expand Down
4 changes: 0 additions & 4 deletions podman-pilot/src/podman.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ pub fn create(
podman:
- --storage-opt size=10G
- --rm
- -ti
include:
Expand Down Expand Up @@ -184,9 +183,6 @@ pub fn create(
app.args(podman.iter().flatten().flat_map(|x| x.splitn(2, ' ')));

if !has_runtime_args {
if !resume {
app.arg("--rm");
}
app.arg("--tty").arg("--interactive");
}

Expand Down

0 comments on commit f3f11b3

Please sign in to comment.