Open clayrisser opened 6 years ago
I too have the same issue - Have tried both rancher-nfs and local volume-drivers
The solution is to set user to root. You can see how I did it in my docker-compose.yml file.
prometheus:
image: prom/prometheus:v2.1.0
user: root
# etc . . .
My pull request at the link below fixes it. Hopefully, they accept it soon.
The Prometheus service breaks when using a custom docker volume driver. Basically, the container does not have permission to write to the
/prometheus
folder. This is becauseroot
permission is needed to write to that folder when using a volume driver (specificallyrancher-nfs
in my case). The default user for the Prometheus container isnobody
, hence the write permission error.