Closed kaihendry closed 2 years ago
This should help you
environment:
- TZ=Asia/Singapore
- ServerIP=192.168.1.4
Thanks, but it doesn't appear to work: https://s.natalian.org/2020-02-05/pihole.txt
This docker-compose.yml
config definetly works
version: "3"
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "80:80/tcp"
- "443:443/tcp"
environment:
- TZ=Asia/Singapore
- ServerIP=172.27.131.141
volumes:
- './etc-pihole/:/etc/pihole/'
- './etc-dnsmasq.d/:/etc/dnsmasq.d/'
dns:
- 127.0.0.1
- 1.1.1.1
restart: unless-stopped
@kaihendry Saw your comment on HN.. is this still an issue with the v5.0 container?
I've been running my main Pi-hole install under docker for some time now and have not seen this issue myself. FWIW, my compose file:
version: '3.5'
services:
pihole:
container_name: pihole
depends_on:
- unbound
image: pihole/pihole:v5.0
environment:
- TZ=Europe/London
- ServerIP=192.168.1.253
- DNS1=192.168.1.254#53
- DNS2=no
- HOST_IP=192.168.1.253
volumes:
- /etc/localtime:/etc/localtime:ro
- ./pihole/resolv.conf:/etc/resolv.conf
- ./pihole/configs/pihole/:/etc/pihole/
- ./pihole/configs/dnsmasq.d:/etc/dnsmasq.d/
ports:
- "53:53/tcp"
- "67:67/udp" # Uncomment if you want to use Pi-Hole for DHCP
- "53:53/udp"
expose:
- "80"
mac_address: d0:ca:ab:cd:ef:fe
networks:
home:
ipv4_address: 192.168.1.253
dns:
- 127.0.0.1
cap_add:
- NET_ADMIN
restart: always
Don't quite understand the unbound dependency and the mac_address line.
You bind localtime and ipv4_address, and then that's duplicated in the env?
This sucks quite a bit.
Oh, sorry, yes I'm also running an unbound container (ETA - That's what DNS1 is pointed at), but I left it out for brevity.
I may or may not be doing some non-standard stuff in my compose file, I'm a total novice when it comes to docker. This was hobbled together after reading several subjects on the matter.
The mac address is because I'm using macvlan
for all of my docker containers.
There is probably room for improvement, but it works, and I'm happy with that. Point is, I don't have any issues with the web interface. Per my original question, do you still have the same problem when using the v5.0
tag?
I did a Docker compose pull and the log says I'm using v5, still the same problem.
On the host system, what is the output of netstat -tulpn | grep 80
I'm now wondering if you have something else listening on port 80 on the host (though, I know that makes no sense because the container should have complained if there was...)
Nope, nothing run on port 80. Can you try my docker-compose.yml?
Just span up a fresh debian droplet on Digitalocean, installed docker, installed docker-compose, used your compose file and I am able to access the web interface with no issues.
I don't currently have a raspberry pi to test this on.
Only difference is the headers I get on the curl
request, not entirely sure what the reason for that is
What Pi hardware is this on?
And these questions might require uploading a pastbin or other text site doc with all the output since its a lot.
uname -a
outputdocker info
outputcurl -v curl http://192.168.1.4/admin/
docker-compose down / docker rm -f pihole
, then re-up) to prune the logs down to minimum and post your docker logs? docker logs pihole
I have the same issue on the x86 image.
Fixed it by upgrading containerd
This issue is stale because it has been open 30 days with no activity. Please comment or update this issue or it will be closed in 5 days.
Closing as this is likely an issue with an older container. I See one commenter said they fixed it by upgrading containerd
. As this was last commented on over a year ago, I will close for now. Please feel free to reopen if it is still a probelm
Description
One day http://192.168.1.4/admin/ stopped working. How can I get it working again? I'm running the latest image.