Update pihole docker dns issue

Hello,
I am running pi-hole in a docker using docker-compose. Everything is working well in general.

However, when I try to update the docker container I run into an issue. I stop the pi-hole and do a "docker compose pull". However, since pi-hole is down it can not reach the docker repository...

$ sudo docker compose pull
[+] Pulling 1/1
✘ pihole Error Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:42710->[::1]:53: read: connection refused 0.0s
Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:42710->[::1]:53: read: connection refused

When I perform the same command with pi-hole running it does pull, but this is not the way to go I understand.
sudo docker compose pull
[+] Pulling 1/1
:check_mark: pihole Pulled

What to do here?

Set a different DNS server in your docker compose file, like:

pihole:
    container_name: pihole
    image: pihole/pihole:latest
    dns:
      - 8.8.8.8
      - 8.8.4.4
    environment:
      TZ: 'Europe/London'

I just did that, but that doesn't help. I disable pi-hole docker first (sudo docker compose down), before trying to pull the updated image. The docker compose file is not relevant then, since the docker is down...

Your host is probably using Pi-hole, when the container is down it will not be able to resolve DNS. Please post your dns configuration by sharing the output of cat /etc/resolv.conf (on the host).

That's it, thank you! my resolv.conf was empty. After adding nameserver 8.8.4.4 to it, it immediately worked!

Thanks again