在 Rootless 中运行 Podman 在熔丝覆盖文件上失败

发布于 2025-01-09 15:08:23 字数 741 浏览 3 评论 0原文

我在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心病无药医 2025-01-16 15:08:23

错误包含无法执行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

您可能想使用以下命令安装它

# yum install fuse-libs

: 如果二进制文件在您的系统上似乎没问题,问题可能更多地出在调用它的命令行上。不幸的是你没有发布那个。剩下需要检查的是

  • 文件系统权限
  • SE Linux 权限
  • podman 安装本身(您是否配置了必要的参数,例如 /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.html

You might want to install it using

# yum install fuse-libs

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

  • filesystem permissions
  • SE Linux permissions
  • the podman installation itself (did you configure necessary parameters, like in /etc/subuid and /etc/subgid?)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文