Docker integration works, but....it shouldn't?
Heyas, I've got a homarr container running in my homelab and it's all working wonderfully. I've got users created for each container, bind mounts set with appropriate user and group perms, everything working well. What's confusing me though is that the docker integration is working (via adding /var/run/docker.sock as a mounted volume), when I don't think it should be - I haven't added the homarr user into the docker group...
Below a snippet of my compose.
If there are indentation errors please ignore, it's a copy paste artefact. This is working,
and here's the perms on the host system:
Is there something I'm missing here?
Host is Ubuntu 24.04 LTS, Homarr version 0.15.10
7 Replies
Thank you for submitting a support request.
Depending on the volume of requests, our team should get in contact with you shortly.
⚠️ Please include the following details in your post or we may reject your request without further comment: - Log (See https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log) - Operating system (Unraid, TrueNAS, Ubuntu, ...) - Exact Homarr version (eg. 0.15.0, not latest) - Configuration (eg. docker-compose, screenshot or similar. Use ``your-text`` to format) - Other relevant information (eg. your devices, your browser, ...)
Frequently Asked Questions | Homarr documentation
Can I install Homarr on a Raspberry Pi?
You're running 0.15.10 which is deprecated and we no longer provide support for. See https://homarr.dev/blog/2025/01/19/migration-guide-1.0
Migrate from 0.15.10+ to 1.0.0 | Homarr documentation
In this guide, we will show you how to migrate from Homarr 0.15.10+ to 1.0.0.
oh, righto. That's given me something else to look into - why watchtower didn't update homarr....
Let me upgrade and confirm I'm still seeing this issue
Because we use a new image tag. Hence it doesn't auto update
Ahh yea that'd do it. Righto, Give me a bit and I'll report back. Thanks for the prompt response
Ok, v1.0.0 deployed. Gotta say it looks nice!
When running without user (PUID / PGID) directive set aka as root, docker containers visible in Tools --> Docker
When running with user set as my specific homarr-only user (1019:1019) while not in the dockers group, it errors - as expected.
I then added my 1019 user to the dockers group, but still the error:
verifying user is in the right group
I didn't really make this a question - is this the expected outcome?
From my understanding of the documentation / linux permissions, it shouldn't be. I would have expected that adding the user (
uid:1019) that the container is running as to a group that has RW access to /var/run/docker.sock would be sufficient, but that doesn't seem to be the case.
That, or I've stuffed something up somewhere (more likely)Running as a different user | Homarr documentation
By default the container is running with user root and group root.
Ahh… I had seen that, and I’d interpreted it as “ensure the user (that the container is running as) is in the correct group to access docker files”, hence me adding id:
1019 to the group docker
On re-read I think the docs are saying that instead I should be setting PGID to 984, which is the docker group on my system.
Won’t lie, don’t fully understand the difference - I figured the inherited access of user 1019 being in group 984 would work*, but clearly not. I’ll test and report back.
* eg this is /etc/groups atm, with things not working:
Yup that's solved it:
And now container management is accessible.
Thanks for the help, and TIL about how docker does(n't) apply supplementary groups to a container.