NAME 名称

podman-image-unmount - Unmount an image’s root filesystem
podman-image-unmount - 卸载镜像的根文件系统

SYNOPSIS 概要

podman image unmount [options] image […]
podman image unmount [选项] 镜像 […]

podman image umount [options] image […]
podman image umount [选项] 镜像 […]

DESCRIPTION 描述

Unmounts the specified images’ root file system, if no other processes are using it.
卸载指定图像的根文件系统,如果没有其他进程在使用它。

Image storage increments a mount counter each time an image is mounted. When an image is unmounted, the mount counter is decremented, and the image’s root filesystem is physically unmounted only when the mount counter reaches zero indicating no other processes are using the mount. An unmount can be forced with the --force flag.
图像存储在每次挂载图像时递增一个挂载计数器。当卸载图像时,挂载计数器递减,并且只有当挂载计数器达到零时,表示没有其他进程在使用挂载时,图像的根文件系统才会被物理卸载。可以使用 --force 标志强制卸载。

OPTIONS 选项

--all, -a

All of the currently mounted images are unmounted.
所有当前挂载的图像都被卸载。

--force, -f

Force the unmounting of specified images’ root file system, even if other processes have mounted it.
强制卸载指定图像的根文件系统,即使其他进程已经挂载它。

Note: Other processes using the file system can fail if the mount point is removed without their knowledge.
注意:如果在没有它们的知识的情况下删除挂载点,则使用文件系统的其他进程可能会失败。

EXAMPLE 例子 ¶

Unmount image with a given ID:
使用给定的 ID 卸载图像:

podman image unmount imageID

Unmount multiple images with given IDs:
使用给定的 ID 卸载多个镜像:

podman image unmount imageID1 imageID2 imageID3

Unmount all images: 卸载所有镜像:

podman image unmount --all

SEE ALSO 参见 ¶

podman(1), podman-image-mount(1), podman-mount(1)