← 返回命令列表

Linux command

podman-rmi 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Remove an image

podman rmi [image]

Remove multiple images

podman rmi [image1] [image2]

Force remove

podman rmi -f [image]

Remove all unused images

podman rmi -a

说明

podman rmi removes one or more container images from local storage, freeing disk space. By default, images that are currently in use by a container cannot be removed. Use -f (force) to remove images even if containers reference them. The -a flag removes all images. The --ignore flag silently skips images that don't exist instead of returning an error.

参数

-f, --force
Force removal.
-a, --all
Remove all images.
--ignore
Ignore missing images.

FAQ

What is the podman-rmi command used for?

podman rmi removes one or more container images from local storage, freeing disk space. By default, images that are currently in use by a container cannot be removed. Use -f (force) to remove images even if containers reference them. The -a flag removes all images. The --ignore flag silently skips images that don't exist instead of returning an error.

How do I run a basic podman-rmi example?

Run `podman rmi [image]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -f, --force do in podman-rmi?

Force removal.