我一直在尝试删除 podman 中的 SC4S 容器,但它抛出以下错误。
WARN[0000] Unmounting container "SC4S" while attempting to delete storage:
unmounting "/var/lib/containers/storage/overlay/.../merged": invalid
argument Error: removing storage for container "SC4S": unmounting
"/var/lib/containers/storage/overlay/.../merged": invalid argument
我尝试删除图像(
podman rmi -f imageid
),但收到与上面相同的卸载错误
通常我们会尝试使用umount卸载
/var/lib/containers
,并在删除镜像后尝试重建镜像
请注意,即使
podman unmount
也不起作用。它抛出在该 ID 中找不到任何容器。
我正在寻找任何无需卸载目录的解决方案
/var/lib/containers
容器仅在我使用
--external
标签时显示,如下所示
podman ps --external
但当我使用podman ps -a
时却没有
有什么方法可以在不卸载路径的情况下卸载它或删除容器吗?
你可以尝试跑步吗 -
podman rm --storage <container ID> -f