在 Rootless 中运行 Podman 在熔丝覆盖文件上失败
我在CentOS 7上安装了Podman。我可以在root权限下运行它,但在无root环境中失败。
这是命令和结果:
$ podman run -it busybox sh
ERRO[0000] error unmounting /home/chsun/.local/share/containers/storage/overlay/ea62672ff47fb673afd59da0bbcc2d4327327949c96193a87ea5042d87af0183/merged: invalid argument
Error: error mounting storage for container c34523fdee2a01caab4b26575d97ce12fb3af3aabef3eb89941f19944272189f: error creating overlay mount to /home/chsun/.local/share/containers/storage/overlay/ea62672ff47fb673afd59da0bbcc2d4327327949c96193a87ea5042d87af0183/merged: using mount program /usr/bin/fuse-overlayfs: fuse: failed to exec fusermount3: No such file or directory
fuse-overlayfs: cannot mount: Operation not permitted
: exit status 1
$
I installed Podman on CentOS 7. I can run it under root permission, but failed in a rootless environment.
Here is the command and result:
$ podman run -it busybox sh
ERRO[0000] error unmounting /home/chsun/.local/share/containers/storage/overlay/ea62672ff47fb673afd59da0bbcc2d4327327949c96193a87ea5042d87af0183/merged: invalid argument
Error: error mounting storage for container c34523fdee2a01caab4b26575d97ce12fb3af3aabef3eb89941f19944272189f: error creating overlay mount to /home/chsun/.local/share/containers/storage/overlay/ea62672ff47fb673afd59da0bbcc2d4327327949c96193a87ea5042d87af0183/merged: using mount program /usr/bin/fuse-overlayfs: fuse: failed to exec fusermount3: No such file or directory
fuse-overlayfs: cannot mount: Operation not permitted
: exit status 1
$
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
错误包含
无法执行fusermount3
您检查过您的计算机上是否有该可执行文件吗?
如果没有,请检查它位于哪个包中。
检查是否可以直接从命令行运行。
如果没有,请使用 ldd fusionmount3 检查所有依赖项是否可用
如果缺少依赖项,请尝试找出它们可能附带的包。
https://www.man7.org/linux/man- pages/man1/fusermount3.1.html 表明
libfuse
发挥作用。另请参见 https://centos.pkgs.org/7/centos-x86_64/fuse-libs-2.9.2-11.el7.x86_64.rpm.html您可能想使用以下命令安装它
: 如果二进制文件在您的系统上似乎没问题,问题可能更多地出在调用它的命令行上。不幸的是你没有发布那个。剩下需要检查的是
/etc/subuid
和/etc/subgid
中的参数?)The error contains
failed to exec fusermount3
Have you checked whether you have that executable on your machine?
If not, check which package it is in.
Check if it can be run from command line directly.
If not, check whether all dependencies are available using
ldd fusermount3
If dependencies are missing, try to figure out the package they might come with.
https://www.man7.org/linux/man-pages/man1/fusermount3.1.html indicates that
libfuse
plays a role. See also https://centos.pkgs.org/7/centos-x86_64/fuse-libs-2.9.2-11.el7.x86_64.rpm.htmlYou might want to install it using
If the binary seems ok on your system the problem may be more on the command line that it is invoked with. Unfortunately you did not post that. What remains to be checked then is
/etc/subuid
and/etc/subgid
?)