How to change the Pi-Hole Hostname under Docker Desktop?

Hello everyone,

I am an absolute Docker Dekstop newbie.
I’ve already spent a few days googling and trying out various things. Unfortunately, nothing has helped. My Docker desktop is currently running pi-hole, among other things. I would like to change the hostname, it seems that it is always created “randomly”. I would prefer a fixed hostname. Any ideas on how to change this?

Thanks and best regards

Translated with DeepL Translate: The world's most accurate translator (free version)

Hi,

Do you use the gui?
If i go to images → select the image → RUN → optinal settings, i get an option to set a name.

If you run via docker run, it would be docker run -h “HOSTNAME” …

Thank you so much, next time i use the gui not google. Thanks a lot!