-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hostname Variable #234
Comments
that looks like the container ID i'm sure you probably already did this but did you make sure to replace the host name in your .env file? usuallly when you dont enter anything there it just uses the container ID... |
Tried that. That doesn’t work either. Hostname variable is already in place. See screenshots below. I am using Portainer if that makes a difference. I have also updated the container name as well to match. Not that I thought that would work. It
***@***.***
***@***.***
From: xteriormask4eva ***@***.***>
Sent: Thursday, January 4, 2024 9:03 PM
To: chriscrowe/docker-pihole-unbound ***@***.***>
Cc: Scott L. Smith ***@***.***>; Author ***@***.***>
Subject: Re: [chriscrowe/docker-pihole-unbound] Hostname Variable (Issue #234)
that looks like the container ID i'm sure you probably already did this but did you make sure to replace the host name in your .env file? usuallly when you dont enter anything there it just uses the container ID...
If thats the case I think if you change it from the file and redeploy should fix it
—
Reply to this email directly, view it on GitHub<#234 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMBSOWFNGHQMZUZTPLS454DYM53NNAVCNFSM6AAAAABBJLYAPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZYGA4TCMJYGM>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Ahh fair enough I did not use portainers sorry I could not be more help :( |
Hello, the pi-hole hostname shown on the web dashboard shows the hostname of the docker container. Setting the HOSTNAME environment variable alone does not change the hostname of the docker container. Setting Hostname for ContainerYou can set the hostname of the pi-hole docker container to your HOSTNAME environment variable as follows:
In portainer, add the hostname line to the stack in the web editor section (above the environment variable section you have in the screenshot). Note: VIRTUAL_HOST environment variablePi-hole docker docs optional env variables documentation
|
Hi,
Happy New Year and thanks for all your hard work on this. I noticed that the hostname does not take when applied in the config. When the container starts, it gets a random name, as opposed to the configured hostname in the compose file. Is there a fix for this? Pardon my OCD on this light issue.
The text was updated successfully, but these errors were encountered: