Pi-hole and unbound on one container, creating custom docker image!

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ส.ค. 2023
  • In this video I will be showing you how to create a Docker file to build your own Docker image with Pi-hole and unbound running on a single container. DNS Server for home lab.
    *Link to my GitHub where you can find the pihole-unbound.yml and piholeunbound docker file*
    (docker compose / piholeunbound)
    github.com/robwithtech/homelab
    Link to article outlying unbound on Pi-hole.
    rb.gy/3q4ss
    dockerfile
    dockerfile tutorial
    dockerfile build

ความคิดเห็น • 30

  • @caveman98
    @caveman98 4 หลายเดือนก่อน

    Had some trouble correcting indentation in compose file but succeeded at the end. In fact I'm new to compose plugin in OMV, I watched quite many videos but yours is definitely the most comprehensive one. Thank you very much, really appreciate your work.

    • @robwithtech
      @robwithtech  4 หลายเดือนก่อน

      Thank you for your feedback. I appreciate it.🙂

  • @ClipNslip
    @ClipNslip 2 หลายเดือนก่อน +1

    If you are getting

  • @CarrotPrO
    @CarrotPrO หลายเดือนก่อน +1

    Thanks 😀 love you videos!

    • @robwithtech
      @robwithtech  หลายเดือนก่อน

      Glad you like them! Cheers!

  • @XxxXxToxicxXxXx
    @XxxXxToxicxXxXx หลายเดือนก่อน

    Thank you so much for this video!

    • @robwithtech
      @robwithtech  หลายเดือนก่อน

      You are so welcome!

  • @bienvenochi
    @bienvenochi 10 หลายเดือนก่อน

    Mann this was great really appreciate it! I had a small error towards the end with pihole telling me I messed up line 1 in the config, but redoing some steps got it up and running.

    • @robwithtech
      @robwithtech  10 หลายเดือนก่อน

      Thank you for inspiring me to create this video. I am glad I was able to help 🙂

  • @Weowtech
    @Weowtech 5 หลายเดือนก่อน

    Really appreciate the guide, well documented and easy to follow. Keep up the good work
    I went through the guide today and everything went through fine I didn't get any errors The only thing that happened to me is I couldn't name the files part to the same as the container image which I just renamed it and it was fine and then I changed a two values the same way you did.
    But for some reason when I try to start it it starts but it crashes my open media vault and then I was able to access the pie hole site one time but then it wouldn't access again I have a feeling there's something I have entered wrong under the subnet or the gateway but I'm not sure.

    • @robwithtech
      @robwithtech  5 หลายเดือนก่อน

      Hello, I am not sure what might have gone wrong. I haven't experienced this personally.

  • @ytsemea
    @ytsemea 12 วันที่ผ่านมา

    I know it's a stupid question but, how can I run the updates for both pinhole and unbound without messing up the installation?

    • @robwithtech
      @robwithtech  8 วันที่ผ่านมา

      Hello, you would need to recreate the container image using the same docker file. Then stop your pihole container and start it again. This will load the new container that you created.
      If you want to play it safe, you can copy the pihole files and rename the folder and create a new compose file. You would ssh into your omv and and find your pihole install folder in the video mine is called piholeunbound.
      cp -R piholeunbound piholeunbound2 this is just going to copy your current pihole folder to another folder.
      Then create a new docker file and copy the old one but make sure you add a tag let say 1 and then pull and create container. What this will do is create a new piholeunbound:1, so then on the new yaml / compose file you would use 1 as a tag. Example: piholeunbound:1 under image:
      Now you would create a new compose file and name it different than the old one. Make sure you change the container name in the yaml file and also the install path under volumes. Instead of piholeunbound/... it will be piholeunbound2.. this will be different if you copied the folder under a different name. Make sure you turn off the old one when starting new test one since the ip address will be the same. If for whatever reason the test one does not have your data DO NOT do this on your main piholeunbound container. Unless it all goes well then you can just rebuild the original docker file and stop the test one and start your original, this is assuming that tag is set as latest like in the video. Or you can also just continue using the test one. Hope this helps.

  • @lukecage9964
    @lukecage9964 8 หลายเดือนก่อน

    Extra: can you make a new tutorial to cover pihole + cloudflared for dns as an alternative configuration? I'm currently running a cloudlfared container and I'm wondering if I can create a compose with cloudflared + pihole

    • @robwithtech
      @robwithtech  8 หลายเดือนก่อน

      Hello, which cloudflare container are you using? And what is the purpose/ use case of the cloudflare container?

  • @castorel007
    @castorel007 7 หลายเดือนก่อน

    I did all the things mentioned here, item by item and when I run the "top command" seems like unbound is not running. I have already redone the image and the stack (using portainer) 3 times already manually writing the code you provided (and copy pasting some items) updating all the IP's correctly etc. Pi-hole is running but it seems like unbound is not

    • @robwithtech
      @robwithtech  6 หลายเดือนก่อน

      Something might of been missed. If you console into the container "docker run -it containerName /bin/bash" You can try starting unbound by using this command. "/etc/init.d/unbound start" then run the top command again and see if it started. If it doesn't start they was an issue when the stack was created. You can actually create a base container (pihole/pihole:latest) and run each line via console and you can see where the issue is. If you use ubuntu base image you will have to also to install pihole. I can probably create a video sort describing this but it will be boring tho.

  • @andreyga22
    @andreyga22 2 หลายเดือนก่อน

    Why would you want unbound, isn’t pihole good enough on itself? Can anyone explain that to me?

    • @robwithtech
      @robwithtech  2 หลายเดือนก่อน +1

      Hello, you can check the documentation on pihole website for unbound. The explanation there is a lot better than what I can explain. You can google "pihole unbound documentation" the first link you get explains what happens with upstream dns and when you have unbound as dns. Hope this helps.

  • @cambrown__
    @cambrown__ 4 หลายเดือนก่อน

    hey, please could you post your docker image file? I can't get mine to pull and build properly. The dockerfile keeps restarting over and over

    • @cambrown__
      @cambrown__ 4 หลายเดือนก่อน

      or maybe its something else, I followed your pihole+macvlan video and it worked. But adding the unbound stuff I'm having issues

    • @robwithtech
      @robwithtech  4 หลายเดือนก่อน

      Hello, let me test the file to make sure it works. If all works good, I will add a link in my description. Please bare with me thank you.

    • @cambrown__
      @cambrown__ 4 หลายเดือนก่อน

      @@robwithtech thank you mate, I really appreciate it

    • @robwithtech
      @robwithtech  4 หลายเดือนก่อน +1

      Hi, I have just updated the video description with the link to my GitHub. You can find the docker file and the pihole-unbound.yml file. Hope this helps.

    • @cambrown__
      @cambrown__ 4 หลายเดือนก่อน

      @@robwithtech Thanks so much! Its working perfectly now. I still have no idea what issue I had, probably a typo or network config.

  • @AdemKazkondu
    @AdemKazkondu 7 หลายเดือนก่อน

    i dont have "compose" in my openmediavault

    • @AdemKazkondu
      @AdemKazkondu 7 หลายเดือนก่อน

      OMV-Extras 😮i dont know that

    • @robwithtech
      @robwithtech  7 หลายเดือนก่อน

      Hello, you need to install OMV-Extras via SSH. Then you click on that plugin and enable docker repo. After that you can go to plugin and install compose plugin.

  • @jamesbiggleworth4458
    @jamesbiggleworth4458 9 หลายเดือนก่อน

    Why have the comments need removed?