根据 Dockerfile 属于 prometheus 这个 USER 设置为 nobody .
Dockerfile
prometheus
USER
nobody
因此,服务无法访问上述目录是有意义的。
所以问题是通过执行一个
chgrp -R nogroup /prometheus_data