Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Local Pi-hole in Docker [MacOS]


  • Docker
  • Docker Compose

If you don't have these, run

brew install docker docker-compose

Copy the docker compose example code from here:

In the folder where you stored the docker-compose.yml, run the following:

docker-compose up -d
networksetup -setdnsservers Wi-Fi

Check your dashboard @

You'll find the password to login in the console logging of your container. If you want / need to change it, simply run:

docker exec -it <pihole_container_name> pihole -a -p <new password>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment