Pull a container image from a registry.
(image: str, manifest_digest: str)
| 376 | |
| 377 | |
| 378 | def container_pull(image: str, manifest_digest: str) -> None: |
| 379 | """Pull a container image from a registry.""" |
| 380 | podman = init_podman_command() |
| 381 | try: |
| 382 | podman.run(["pull", f"{image}@sha256:{manifest_digest}"], capture_output=False) |
| 383 | except CommandError: |
| 384 | raise errors.ContainerPullException("Could not pull the container image") |
| 385 | |
| 386 | |
| 387 | def get_local_image_digest(image: str | None = None) -> str: |
nothing calls this directly
no test coverage detected