Skip to content

Monitor Podman using unix socket #24103

Answered by diasdmhub
diasdmhub asked this question in Q&A
Discussion options

You must be logged in to vote

What I'm trying to accomplish is to monitor the rootless Pod with Zabbix.

So far, what I'm catching up is that SystemD creates the /run/user directory as root.

[root@pod ~]# /usr/lib/tmpfiles.d/systemd.conf
d /run/user 0755 root root -

In it, if user linger is enabled, a directory is created for the user with permission 0700, which means no group access.

[user@pod ~]$ ls -lad /run/user/1004
drwx------ 8 user user 200 Oct  3 16:17 /run/user/1004

Since the /run/user/$UID directory is created by enabling user linger, I've created the .config/user-tmpfiles.d/podman_user_1004.conf file with the following value. (Thanks @afbjorklund)

z /run/user/%U 0710 user user -

With this, I aim to give …

Replies: 5 comments 12 replies

Comment options

You must be logged in to vote
4 replies
@rhatdan
Comment options

@diasdmhub
Comment options

@rhatdan
Comment options

@diasdmhub
Comment options

Comment options

You must be logged in to vote
2 replies
@rhatdan
Comment options

@eriksjolund
Comment options

Comment options

You must be logged in to vote
3 replies
@piotr-dobrogost
Comment options

@diasdmhub
Comment options

@rhatdan
Comment options

Comment options

You must be logged in to vote
3 replies
@afbjorklund
Comment options

@rhatdan
Comment options

@afbjorklund
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by diasdmhub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants