当前位置:   article > 正文

‘grafana.ini‘ is read only ‘defaults.ini‘ is read only

‘grafana.ini‘ is read only ‘defaults.ini‘ is read only

docker安装grafana 关闭匿名登录情况下的免密登录遇到问题

'grafana.ini' is read only 'defaults.ini' is read only

参考回答(Grafana.ini giving me the creeps - #2 by bartweemaels - Configuration - Grafana Labs Community Forums

正确启动脚本

docker run -d -p 3000:3000 \
-e GF_SECURITY_ALLOW_EMBEDDING=true \
-v /home/grafana/grafana.ini:/etc/grafana/grafana.ini \
-v /home/grafana/conf/defaults.ini:/usr/share/grafana/conf/defaults.ini \
--name=grafana2024 grafana/grafana

[auth.anonymous]
# enable anonymous access
enabled = true#开启免密登录

# specify organization name that should be used for unauthenticated users
org_name = Main Org.

# specify role for unauthenticated users
#org_role = Viewer
org_role = Admin#管理员权限

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/160758
推荐阅读
相关标签
  

闽ICP备14008679号