Uploaded image for project: 'Container Tools'
  1. Container Tools
  2. RUN-2770

[containers/buildah] Need a new function buildah build --rmi to remove internmediate container images.

XMLWordPrintable

    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • rhel-container-tools

      [2966987681] Upstream Reporter: Daniel J Walsh
      Upstream issue status: Closed
      Upstream description:

      A containerfile like the following:

      FROM alpine  as builder
      RUN mkdir -p /models; cd /models; ln -s MODEL model.file
      
      FROM scratch
      COPY --from=builder /models /models

      buildah build -t foobar .

      Will build two images, one called foobar and another one as

      We need to allow users to execute

      buildah build --rmi -t foobar .

      Which would remove any cached images created during the build. Similar to --rm works on containers.

      The RamaLama project executes podman build and is leaking these images because it is using --nocache during the build.


      Upstream URL: https://github.com/containers/buildah/issues/6105

              Unassigned Unassigned
              upstream-sync Upstream Sync
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: