# Editing Grafana defaults.ini in Portainer console?

**URL:** <https://community.grafana.com/t/editing-grafana-defaults-ini-in-portainer-console/61278>\
**Category:** Configuration\
**Tags:** docker, alerting\
**Created:** [February 23, 2022, 9:05am UTC](https://community.grafana.com/t/editing-grafana-defaults-ini-in-portainer-console/61278 "2022-02-23T09:05:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![peshawag](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/peshawag/32/21448_2.png) [@peshawag](https://community.grafana.com/u/peshawag)\
**Post date:** [February 23, 2022, 9:05am UTC](https://community.grafana.com/t/editing-grafana-defaults-ini-in-portainer-console/61278/1 "2022-02-23T09:05:02Z")

</div>

Hi  
I have installed Grafana in Docker and I am using Portainer as GUI to interact with Grafana. I want to configure the alert email notification in Grafana as a part of my project. To do that one has to change the SMTP setting defaults.ini (installed in windows). By using the basic command in Linux, I can navigate the configuration file for the Grafana Docker container. I am able to see what is inside the file (defaults.ini) but how can I edit it?

---

<div class="post-metadata">

**Author:** ![anon70503803](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@anon70503803](https://community.grafana.com/u/anon70503803)\
**Post date:** [March 14, 2022, 8:47pm UTC](https://community.grafana.com/t/editing-grafana-defaults-ini-in-portainer-console/61278/2 "2022-03-14T20:47:02Z")

</div>

when running docker in a container, you must use environmental variables to modify configuration settings:

> **[Configuration](https://grafana.com/docs/grafana/latest/administration/configuration/#override-configuration-with-environment-variables)**
>
> Configuration documentation

I haven’t used portainer, but I imagine you just need to revise the `docker run` command somewhere
