Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📝 add howto run padd.sh with dockerized Pi-hole and remove link to wiki from README #208

Merged
merged 1 commit into from
Aug 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
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!