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#管理员权限