Coder Social home page Coder Social logo

Comments (6)

rosshettel avatar rosshettel commented on May 13, 2024 1

It would be great if this could be included as a environment variable so the password would persist on container restarts.

from docker-pi-hole.

diginc avatar diginc commented on May 13, 2024 1

@rosshettel I've debated having a default random password like the new pi-hole installer does. I ended up leaning towards these implementation details:

  • Default: random password prints during the 1st boot of container
    • Users check their docker log for the line that says 'password set to' to find new random password.
    • Users could just override with a docker exec pihole pihole -a -p <foobar>
  • env var web_password: when null / empty nullifies the need for a password
    • not null value sets the password to that value on first boot.

from docker-pi-hole.

middleagedman avatar middleagedman commented on May 13, 2024

You know.. strange thing is I think it is stored somewhere. I have my /etc/pihole directory mounted from my container, and I've destroyed and rerun the image many times, and somehow that password still sticks.

from docker-pi-hole.

AzureMarker avatar AzureMarker commented on May 13, 2024

It's stored in setupVars.conf as a hash.

from docker-pi-hole.

middleagedman avatar middleagedman commented on May 13, 2024

That's a great idea.

from docker-pi-hole.

diginc avatar diginc commented on May 13, 2024

Merged in #106

from docker-pi-hole.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.