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:
parent
0d8f3279ad
commit
81695aee4b
6 changed files with 93 additions and 14 deletions
|
|
@ -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();
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue