Skip to content

Commit

Permalink
📝 add howto run padd.sh with dockerized Pi-hole and remove dead link …
Browse files Browse the repository at this point in the history
…to wiki
  • Loading branch information
thomasmerz committed Aug 12, 2022
1 parent 380636a commit 0f2d6c5
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions README.md
Expand Up @@ -56,6 +56,17 @@ 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’ll need to follow [these instructions](https://github.com/jpmck/PADD/wiki/Updating-from-Chronometer2)!**

## FAQ

*Answers to frequently asked questions can be found in this repo’s [wiki](https://github.com/jpmck/PADD/wiki/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!

0 comments on commit 0f2d6c5

Please sign in to comment.