Replies: 6 comments 8 replies
-
What are the permissions on the host? It looks like "others" have no read access to this dir so only root and the group can read it. |
Beta Was this translation helpful? Give feedback.
-
This are the host permissions: |
Beta Was this translation helpful? Give feedback.
-
I assume you are part of the adm group? |
Beta Was this translation helpful? Give feedback.
-
Compose cannot use keep-groups as far as I know, at least I get an error saying it is unable to find that group. |
Beta Was this translation helpful? Give feedback.
-
If compose can use annotations you can set |
Beta Was this translation helpful? Give feedback.
-
I honestly don't know, but thanks for your quick replies. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
I'm unable to access the log files in /var/log of the host, in my podman container.
I'm running rootless podman, but the service in the container (Crowdsec) is running as root. As I understood root in the container maps to my user outside the container (uid 1000)
From the host itself I can access the log files adn my user account is member of the adm group, but in the container I get permission denied
Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
Permission denied and ls -la shows:
-rw-r----- 1 nobody nobody 2940399 May 16 15:26 ufw.log
-rw-r----- 1 nobody nobody 4151577 May 14 00:00 ufw.log.1
Describe the results you expected
I expected to be able to read the logs inside the container as I am able to read it outside the container and my uid is mapped to the root user inside the container
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
Beta Was this translation helpful? Give feedback.
All reactions