However, upon restarting the container, my changes are gone. The file reverts to what it was to begin with. I did some digging on Docker (being a total neophyte to it) and found that perhaps doing “docker commit ” might do the trick. No luck.
How do I get the container to permanently save edits to the grafana.ini file?
Hi, Mykola. Sure, the steps I use are precisely as laid out in the blog post. When I try your commands, I get a strange “truncated” editing window that I’m unable to use or troubleshoot why it doesn’t work on my end.
The commands listed in the blog post don’t produce the desired results - that’s what my difficulty is. Once I’m able to save changes to that file, I should be fine. All Docker documentation I’m running across seems to say that this file should be an EXTERNAL one, passed with -v at container runtime, so I’m investigating if that will work.
I think it is good idea, you can copy grafana config container to the persistent/safe directory on our server and mount this file inside docker container.
the following commands should work fine