1.查找数据库名--find / -name "grafana.db"
/data/docker/docker/overlay2/3a9ec5648aeb124a13270bacb66bb34e16c7f7112982e470a8cfa834c96778da/merged/var/lib/grafana/grafana.db /data/docker/docker/overlay2/3a9ec5648aeb124a13270bacb66bb34e16c7f7112982e470a8cfa834c96778da/diff/var/lib/grafana/grafana.db
2.进入数据库--sqlite3 /data/docker/docker/overlay2/3a9ec5648aeb124a13270bacb66bb34e16c7f7112982e470a8cfa834c96778da/merged/var/lib/grafana/grafana.db
3.执行查询用户--select * from user;
4.更新密码--update user set password = '59acf18b94d7eb0694c61e60ce44c110c7a683ac6a8f09580d626f90f4a242000746579358d77dd9e570e83fa24faa88a8a6',
...> salt = 'F3FAxVm33R'
...> where login = 'admin';
5.退出 .exit
6.重启服务 --docker restart grafana