[英]Podman-docker container has not started while executing the run command in linux ( Rhel 8 ) server
While trying to run the podman docker container in Linux server (Rhel 8) facing below issue.尝试在 Linux 服务器 (Rhel 8) 中运行 podman docker 容器时遇到以下问题。
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
警告 [0000] 安装订阅时出错,跳过 /usr/share/containers/mounts.conf 中的条目:获取主机订阅数据:无法从“/usr/share/rhel/secrets”读取订阅:打开 /usr/share/rhel /secrets/redhat.repo: 权限被拒绝
Execution command: podman run -d --name redis_server -p 6377:6377 redis
执行命令:
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?你能建议这个问题的解决方案吗?
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).
我使用的原始用户帐户有一个空的 mounts.conf 文件(复制 usr/share/containers 中的文件)。
use touch ~/.config/containers/mounts.conf使用 touch ~/.config/containers/mounts.conf
1874621 – Rootless Podman Unable to Use Host Subscriptions 1874621 – Rootless Podman 无法使用主机订阅
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.