Podman-docker container has not started while executing the run command in linux ( Rhel 8 ) server

2.3k Views Asked by At

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?

1

There are 1 best solutions below

1
On

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