Skip to content

Commit

Permalink
馃摑 add howto run padd.sh with dockerized Pi-hole and fix link to wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmerz committed Aug 12, 2022
1 parent 380636a commit ec951b3
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions README.md
Expand Up @@ -56,6 +56,20 @@ wget -N https://raw.githubusercontent.com/pi-hole/PADD/master/padd.sh

**Note: if you are already running Chronometer2 v1.3.1 or below, you鈥檒l need to follow [these instructions](https://github.com/jpmck/PADD/wiki/Updating-from-Chronometer2)!**

## FAQ
## Running Pi-hole in a Docker Container
If you're running Pi-hole in a Docker Container you can use `padd.sh` this way:
### Simplest, but quick & dirty solution:
Copy `padd.sh` to your `/etc/pihole` volume/mount on your linux host where docker is running. Then execute `docker exec pihole /etc/pihole/padd.sh` and voila!
### Slightly more complicated, but very elegant solution:
If you want `padd.sh` not mixed up with your config files add this line to your [docker_run.sh](https://github.com/pi-hole/docker-pi-hole/blob/master/docker_run.sh#L14) in your Pi-hole
`-v "${PIHOLE_BASE}/opt-padd/:/opt/padd/"`
or [docker-compose.yml](https://github.com/pi-hole/docker-pi-hole/blob/master/docker-compose.yml.example#L19):
```
volumes:
- './opt-padd/:/opt/padd/'
```
Where `./opt-padd` is your local directory where `padd.sh` has been copied to (or your cloned git repo).
Then execute `docker exec pihole /opt/padd/padd.sh` and voila!

*Answers to frequently asked questions can be found in this repo鈥檚 [wiki](https://github.com/jpmck/PADD/wiki/FAQ).*
## FAQ
*Answers to frequently asked questions can be found in this repo鈥檚 [wiki](https://github.com/pi-hole/PADD/wiki/FAQ).*

0 comments on commit ec951b3

Please sign in to comment.