Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upCentOS 7 docker prometheus volume error "open /prometheus/lock: permission denied" #4805
Comments
This comment has been minimized.
This comment has been minimized.
|
You are probably hitting the issue because of SELinux. See https://stackoverflow.com/questions/24288616/permission-denied-on-accessing-host-directory-in-docker I'm closing it for now. If you have further questions, please use our user mailing list, which you can also search. |
simonpasquier
closed this
Oct 30, 2018
This comment has been minimized.
This comment has been minimized.
|
I had fix it.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
zhangjie2012 commentedOct 30, 2018
I want mount
/prometheusto host path/data/prometheus,so I create container like this:docker run -it -d -p 9090:9090 --restart=always -v /data/prometheus:/prometheus -v /data/conf/prometheus.yml:/etc/prometheus/prometheus.yml docker.io/prom/prometheusstart failure, docker logs show :
I had change host
/data/prometheusdir owner and group tonobody:nobody.