How to install pi-hole with VPN for remote DNS on docker on W10?

Hi everyone,

I am brand new to docker and pi-hole, and I recently got it setup on W10 using docker for the first time.

Looking through the guides, I can see that normally it's possible to have pi-hole setup with a VPN in order to be able to use DNS resolution when you are outside of your local network. I would like to run this setup, however I'm using docker on W10 as my pi-hole server, and I am wondering if it's possible to set it up in this environment.

I have two main questions, but any help or steps that you might have used for a similar setup would be welcome, as this is all brand new for me.

  1. Would I have to install pi-hole and open vpn on the same container? (if not, then is it possible to simply install open vpn on the W10 host, and keep pi-hole on its own docker container?)

  2. How could I transfer the open vpn certificate that is created out of my container and onto my devices (if this is possible at all)?

Thank you for any help that you can provide.

You'd have to find a third-party container combining Pi-hole and your chosen VPN software if you want to run them in a singel container (or creatre such a container yourself). Note that you'd had to resort to that third party for support as well.

The common approach would be to run separate containers for separate aspects and configure Docker networking to make them cooperate as required.

Note that Docker for Windows lacks quite a few features when compared to its Linux variant, specifically when it comes to networking.
You may want to refer to Docker's documentation for details.

That's more of a question for OpenVPN's support forums.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.