Getting Dockhand working with Podman and non-root containers #327
IanMajor12
started this conversation in
Show and tell
Replies: 2 comments 1 reply
-
|
hi @IanMajor12 thanks! I will put in the manual! |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
I ran into this situation which I assume will be very common. $UID is not exported properly automatically but $XDG_RUNTIME_DIR is. Here is my volume defintion that allows me to reuse the same podman-compose file across different users without any required additional fiddling: "- ${XDG_RUNTIME_DIR}/podman/podman.sock:/var/run/docker.sock:Z". This will just work. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We use podman at work, so to get that working I only changed the volume to be
/run/podman/podman.sock:/var/run/docker.sock:Z in both the dockhand and hawser service.
In addition, to show non-root containers that are run by a specific user, I spun up another local Hawser agent that was mapped to the users podman.sock like this:
- /run/user/{userid}/podman/podman.sock:/var/run/docker.sock:Z as well as change the new Hawser port to non-standard.
This can be repeated for each user.
We now have environments for all the containers (dockers/podman) running.
Of course, I could have setup a separate Dockhand instance (running on different ports for Dockhand) and only allowed that user to see it.
Beta Was this translation helpful? Give feedback.
All reactions