1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-04 17:44:11 +02:00

allow pinning instances

This commit is contained in:
Robin Appelman 2022-07-21 14:46:39 +02:00
commit 81695aee4b
6 changed files with 93 additions and 14 deletions

View file

@ -11,11 +11,7 @@ pub async fn clear_networks(docker: &Docker) -> Result<()> {
for network in networks {
match network.name.as_deref() {
Some(name) if name.starts_with("haze-") => {
docker
.remove_network(name)
.await
.into_diagnostic()
.wrap_err("Failed to remove docker network")?;
docker.remove_network(name).await.ok();
}
_ => {}
}