Cache invalidation failures must not stop build

Images may still be in use by running containers
This commit is contained in:
jpic 2020-10-05 18:27:49 +02:00
parent 54e3266789
commit 4ea9783c93

View File

@ -29,7 +29,7 @@ class Layers(set):
"""Drop layers for this image""" """Drop layers for this image"""
if tags is None: if tags is None:
tags = [layer for layer in await self.ls(target)] tags = [layer for layer in await self.ls(target)]
await target.exec('podman', 'rmi', *tags) await target.exec('podman', 'rmi', *tags, raises=False)
class Image: class Image: