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 5f1afd89ee
commit c8cdbf38bf

View File

@ -29,7 +29,7 @@ class Layers(set):
"""Drop layers for this image"""
if tags is None:
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: