Podman

你如何用 buildah 修剪?

  • July 30, 2020

當我跑步時buildah containers,我看到了這個

CONTAINER ID  BUILDER  IMAGE ID     IMAGE NAME                       CONTAINER NAME
f5a361407499     *     a24bb4013296 docker.io/library/alpine:latest  alpine-working-container
eb03f2eb1fb6     *     a24bb4013296 docker.io/library/alpine:latest  alpine-working-container-1
bb051587d0f0     *     a24bb4013296 docker.io/library/alpine:latest  alpine-working-container-2
876a6633ccff     *     a24bb4013296 docker.io/library/alpine:latest  alpine-working-container-3

我怎樣才能修剪這個列表?我不再使用這些了。我沒有看到buildah pruneor buildah container prune

當我執行時,podman container ls我沒有看到列出的任何容器。

你需要跑

buildah rm -a

修剪所有容器。

引用自:https://unix.stackexchange.com/questions/600325