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

Pihole Version out of Date #9

Open
Zmatty1 opened this issue Sep 12, 2020 · 2 comments
Open

Pihole Version out of Date #9

Zmatty1 opened this issue Sep 12, 2020 · 2 comments

Comments

@Zmatty1
Copy link

Zmatty1 commented Sep 12, 2020

Hi @theNetworkChuck

Love your YouTube channel. I have learnt more about Docker from it in one video than hours of reading online.

Any chance you could update this script to use the latest version of Pihole?

Regards,

Zmatty1

@dubbleb88
Copy link

dubbleb88 commented Oct 23, 2020

Hey Zmatty,

I just installed the old version and ran the commands on this page. It fixed a dns resolution error I was facing and updated to the latest version without having to create a new docker container image:
EDIT
ignore steps above, it breaks this image and it will get stuck in loop restarting. I might have to build new version from scratch and migrate over python scripts and directory.

@dubbleb88
Copy link

Okay was able to upgrade but there are a few steps in order to get flask back up and running.

Copy bash scripts (block and unblock) to text editor
copy network.py to text editor
shutdown old container

** I changed name to pihole1 just in case I wanted to startup old one to review

Launch new container with these switches, change where needed ie TimeZone. I actually edited the pihole bash file with the below but you can run manually if wanted.

docker run -d
--name pihole1
-p 53:53/tcp -p 53:53/udp
-p 80:80
-p 443:443
-p 8080:8080
-e TZ="America/Chicago"
-v "$(pwd)/etc-pihole/:/etc/pihole/"
-v "$(pwd)/etc-dnsmasq.d/:/etc/dnsmasq.d/"
--dns=127.0.0.1 --dns=1.1.1.1
--restart=unless-stopped
pihole/pihole

If you want Flask to run with Alexa add following steps:

mkdir /home/network
created/copy bash scripts and modified privileges chmod 744
create/copy network.py and modified priveleges chmod 744

install python3
install pip3
install flask with pip3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants