prevent hanging on reboot (#2526)

This commit is contained in:
Aiden McClelland
2023-11-17 16:37:25 -07:00
committed by GitHub
parent 8f231424d1
commit aa2a2e12cc

View File

@@ -54,6 +54,17 @@ impl Shutdown {
tracing::error!("Error Stopping Docker: {}", e); tracing::error!("Error Stopping Docker: {}", e);
tracing::debug!("{:?}", e); tracing::debug!("{:?}", e);
} }
} else if CONTAINER_TOOL == "podman" {
if let Err(e) = Command::new("podman")
.arg("rm")
.arg("-f")
.arg("netdummy")
.invoke(crate::ErrorKind::Docker)
.await
{
tracing::error!("Error Stopping Podman: {}", e);
tracing::debug!("{:?}", e);
}
} }
if let Some((guid, datadir)) = &self.export_args { if let Some((guid, datadir)) = &self.export_args {
if let Err(e) = export(guid, datadir).await { if let Err(e) = export(guid, datadir).await {