From 613644d450c337fb9eb18357c03ae5b97ae9f29d Mon Sep 17 00:00:00 2001 From: Jernej Kos Date: Wed, 22 Jan 2025 13:41:19 +0100 Subject: [PATCH] rofl-containers: Prune all unused container images on startup --- Cargo.lock | 2 +- rofl-containers/Cargo.toml | 2 +- rofl-containers/src/containers.rs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 55c23a86b0..df7ec4bf65 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3974,7 +3974,7 @@ dependencies = [ [[package]] name = "rofl-containers" -version = "0.3.1" +version = "0.3.2" dependencies = [ "anyhow", "base64", diff --git a/rofl-containers/Cargo.toml b/rofl-containers/Cargo.toml index db4a9797c1..a894556665 100644 --- a/rofl-containers/Cargo.toml +++ b/rofl-containers/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rofl-containers" -version = "0.3.1" +version = "0.3.2" edition = "2021" [dependencies] diff --git a/rofl-containers/src/containers.rs b/rofl-containers/src/containers.rs index 3bd8276662..41816657bd 100644 --- a/rofl-containers/src/containers.rs +++ b/rofl-containers/src/containers.rs @@ -37,6 +37,7 @@ pub async fn init() -> Result<()> { run_cmd!( podman system migrate; podman system prune --external; + podman image prune --all --force; )?; Ok(())