I am new to docker.
I am happily running a pi-hole from the official docker. now its time to update the pi-hole, which should not be part of the docker. the new version should be installed.
To not loose the settings, the docu mentions:
Code: Select all
You can customize where to store persistent data by setting the PIHOLE_BASE environment
variable when invoking docker_run.sh (e.g. PIHOLE_BASE=/opt/pihole-storage ./docker_run.sh).
If PIHOLE_BASE is not set, files are stored in your current directory when you invoke the script.
- Do I simply need to add PIHOLE_BASE as an environment variable in the container UI?
- Can I add any folder of a share volume e.g.?
- Does this setting only work for new containers so my current settings without the variable are lost?