Skip to content

Commit

Permalink
Merge branch 'main' into aap-21067
Browse files Browse the repository at this point in the history
  • Loading branch information
mkanoor authored Mar 1, 2024
2 parents ab8ec1b + 3a9078e commit 0fd2681
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/aap_eda/services/activation/engine/podman.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ def cleanup(self, container_id: str, log_handler: LogHandler) -> None:
# ContainerCleanupError handled by the manager
except APIError as e:
raise exceptions.ContainerCleanupError(str(e)) from e
finally:
# Ensure volumes are purged due to a bug in podman
# ref: https://github.com/containers/podman-py/issues/328
pruned_volumes = self.client.volumes.prune()
LOGGER.info(f"Pruned volumes: {pruned_volumes}")

def _image_exists(self, image_url: str) -> bool:
try:
Expand Down

0 comments on commit 0fd2681

Please sign in to comment.