Podman-Docker容器在Linux(RHEL 8)服务器中执行运行命令时尚未启动

发布于 2025-01-20 10:45:07 字数 361 浏览 6 评论 0原文

在试图在Linux Server(RHEL 8)中运行Podman Docker容器时,面向下面的问题。

warn [0000]错误安装订阅,跳过/usr/share/containers/mounts.conf:获取主机订阅数据:无法从“/usr/share/share/rhel/secrets”读取订阅:open/usr/usr/共享/RHEL/SECRETS/REDHAT.REPO:拒绝许可

执行命令: podman run -d -name redis_server -p 6377:6377 redis

我遵循

​?

While trying to run the podman docker container in Linux server (Rhel 8) facing below issue.

WARN[0000] error mounting subscriptions, skipping entry in /usr/share/containers/mounts.conf: getting host subscription data: failed to read subscriptions from "/usr/share/rhel/secrets": open /usr/share/rhel/secrets/redhat.repo: permission denied

Execution command: podman run -d --name redis_server -p 6377:6377 redis

I have followed these steps to run the container

Could you please suggest a solution to this issue?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

悸初 2025-01-27 10:45:07

提供参考,因为这解决了我的问题,引用答案:

我解决了我的具体问题。我使用的原始用户帐户有一个空的 mounts.conf 文件(将其复制到 usr/share/containers 中)。

use touch ~/.config/containers/mounts.conf

1874621 – 无根 Podman 无法使用主机订阅

giving reference as this solved my issue quoting answer:

I solved my specific problem. The original user account I was using had an empty mounts.conf file (copy the one in usr/share/containers).

use touch ~/.config/containers/mounts.conf

1874621 – Rootless Podman Unable to Use Host Subscriptions

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文