stefanprodan / dockprom

Docker hosts and containers monitoring with Prometheus, Grafana, cAdvisor, NodeExporter and AlertManager
MIT License
6.02k stars 1.72k forks source link

Nothing works with normal user permissions #260

Closed zilexa closed 2 years ago

zilexa commented 2 years ago

Installed Docker and Docker compose using official documentation:

# Install Docker and Docker Compose
sudo pamac install --no-confirm docker docker-compose

# Create non-root user for docker, with privileges (not docker rootless)
sudo groupadd docker
sudo usermod -aG docker $USER

# Enable docker at boot
sudo systemctl enable docker.service
sudo systemctl enable containerd.service

This is on Manjaro Gnome.

My persistent volumes are in $HOME/docker and this folder is owned by the normal user, with permissions 755. This also applies to the folder $HOME/docker/analytics which contains all the files and folders of this git.

All my services work fine out-of-the-box except the containers of dockprom. When I check the log in Portainer of Prometheus and Grafana I see permission denied problems.

But how can that be, since all the mapped volumes are owned by the normal user, so root user can access them too?

nightah commented 2 years ago

You're going to have to provide reproduction steps to see if there's anything I might be able to spot.

I've tried this several times on a new Arch Linux based machine with no issues.

nightah commented 2 years ago

Closing due to inactivity, I'll reopen the issue if you can provide reproduction steps here.