Update MyPiDNS
Update MyPIDNS
sudo apt-get update && apt-get upgrade
sudo docker-compose stop pihole
sudo docker-compose pull pihole
sudo docker-compose up -d pihole
Issues
Cannot pull the docker image
Error message
Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Fix it by add fixed ip in the
/etc/hosts
file like- Get the work IP by
nslookup registry-1.docker.io
- Open the
/etc/hosts
file - Add the line at the end of the file like
222.222.222.222 registry-1.docker.io
- Get the work IP by
Cannot connect the cloudflare API
Error message
curl: (6) Could not resolve host: api.cloudflare.com
Fix it by add fixed ip in the
/etc/hosts
file like (optional)- Get the work IP by
nslookup api.cloudflare.com
- Open the
/etc/hosts
file - Add the line at the end of the file like
222.222.222.222 api.cloudflare.com
- Get the work IP by
Stop the docker image
sudo docker-compose stop cloudflare_ddns
Find the related the old container and remove it
sudo docker ps -a | grep cloudflare sudo docker rm [CONTAINER_ID]
Update the image and start it again
sudo docker-compose pull cloudflare_ddns sudo docker-compose up -d cloudflare_ddns
Cannot access grafana plugin url
Error message
Error: ✗ Failed to send request: Get "https://grafana.com/api/plugins/repo/grafana-piechart-panel": dial tcp: lookup grafana.com on X.X.X.X:53: server misbehaving
Stop the docker image
sudo docker-compose stop grafana
Find the related the old container and remove it
sudo docker ps -a | grep grafana sudo docker rm [CONTAINER_ID]
Update the image and start it again
sudo docker-compose pull grafana sudo docker-compose up -d grafana