mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 09:04:12 +02:00
dont fail cleaning stopped containers
This commit is contained in:
parent
da6c6d754b
commit
ef86840e77
1 changed files with 2 additions and 4 deletions
|
|
@ -563,11 +563,9 @@ impl Cloud {
|
||||||
|
|
||||||
pub async fn destroy(self, docker: &Docker) -> Result<()> {
|
pub async fn destroy(self, docker: &Docker) -> Result<()> {
|
||||||
for container in self.containers {
|
for container in self.containers {
|
||||||
docker
|
let _ = docker
|
||||||
.kill_container(container.trim_start_matches('/'), None)
|
.kill_container(container.trim_start_matches('/'), None)
|
||||||
.await
|
.await;
|
||||||
.into_diagnostic()
|
|
||||||
.wrap_err("Failed to kill container")?;
|
|
||||||
docker
|
docker
|
||||||
.remove_container(
|
.remove_container(
|
||||||
container.trim_start_matches('/'),
|
container.trim_start_matches('/'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue