Skip to content

Commit 75fe1ff

Browse files
authored
Merge pull request #1216 from pi-hole/tweak/passwords
Be explicit about setting a blank password in docker
2 parents 7945c24 + e3afdc3 commit 75fe1ff

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"GIT_EDITOR": "nano"
2121
},
2222
"mounts": [
23-
"type=bind,source=/home/${localEnv:USER}/.ssh,target=/home/node/.ssh,readonly"
23+
"type=bind,source=${localEnv:HOME}/.ssh,target=/home/node/.ssh,readonly"
2424
],
2525
"forwardPorts": [8000]
2626
}

docs/docker/configuration.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ Set your [timezone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
4444

4545
To set a specific password for the web interface, use the environment variable `FTLCONF_webserver_api_password` (per the quick-start example). If this variable is not detected, and you have not already set one previously inside the container via `pihole setpassword` or `pihole-FTL --config webserver.api.password`, then a random password will be assigned on startup, and will be printed to the log. You can find this password with the command `docker logs pihole | grep random password` on your host to find this password. See [Notes On Web Interface Password](#notes-on-web-interface-password) below for usage examples.
4646

47+
!!! note
48+
To _explicitly_ set no password, set `FTLCONF_webserver_api_password: ''`<br/><br/>
49+
Using `pihole setpassword` for the purpose of setting an empty password will not persist between container restarts
50+
4751
#### `FTLCONF_dns_upstreams` (Default: `8.8.8.8;8.8.4.4`)
4852

4953
- Upstream DNS server(s) for Pi-hole to forward queries to, separated by a semicolon

0 commit comments

Comments
 (0)