Persistance docker with grafana2.in in persistance folder

Hi, I’m new on grafana, and I tried to set-up an Grafana Docker, with the settings below.

ID=$(id -u grafana) # saves your user id in the ID variable
docker run -d --name=grafana --user $ID --volume “/volume2/grafana:/var/lib/grafana” --volume “/volume2/grafana/etc:/etc/grafana/” -e “GF_PATHS_CONFIG=/etc/grafana/grafana2.ini” -p 3000:3000 grafana/grafana

I can connect to the docker, but the ini file is still an empty file.
And to use the grafana output in openhab, I need change the ini file.

How can I solve this issue?

I Found that as soon I add

[security]
allow_embedding=true

To the ini file, it works.