@gautamravikant6 Modifying configuration files directly is not a recommended way for Docker containers. Please take a look at Configure Docker image | Grafana documentation to use environment variables instead.
Many things have changed since the mentioned article was published 2 years ago. Take a look at the topic How to Customize Grafana interface, which was answered recently.