pi-hole / docker-pi-hole

Pi-hole in a docker container
https://pi-hole.net
Other
8.57k stars 1.13k forks source link

"Domains on Adlists" = 0 after pull #1328

Closed blademan007 closed 1 year ago

blademan007 commented 1 year ago

This is a: FILL ME IN
This is a Build issue

Details

Related Issues

How to reproduce the issue

  1. Environment data

    • Operating System: Ubuntu 22.04.1 LTS
    • Hardware: PC
    • Kernel Architecture: x86
    • Docker Install Info and version:
    • Software source: official docker-ce
    • Supplimentary Software:
    • Hardware architecture: x86
  2. docker-compose.yml contents, docker run shell command, or paste a screenshot of any UI based configuration of containers here

  3. any additional info to help reproduce

Ran:

docker pull pihole/pihole
docker rm -f pihole
docker pihole/pihole (failed)
docker compose up -d

These common fixes didn't work for my issue

If the above debugging / fixes revealed any new information note it here. Add any other debugging steps you've taken or theories on root cause that may help.

dschaper commented 1 year ago

And the information requested please:

  1. docker-compose.yml contents, docker run shell command, or paste a screenshot of any UI based configuration of containers here

docker pihole/pihole (failed)

That's not a docker command so I would expect it to fail.

blademan007 commented 1 year ago

docker pihole/pihole (failed)

That's not a docker command so I would expect it to fail.

Thanks. Then what's the recommended steps to update the container?

dschaper commented 1 year ago

https://github.com/pi-hole/docker-pi-hole#upgrading-persistence-and-customizations

blademan007 commented 1 year ago

I followed that documentation. My error. The command I used was not correctly noted here. docker pihole/pihole (failed) Actual command run that failed was: docker run pihole/pihole Attached CLI log shows container is up, but no ports are open. Can only get container up using docker compose up -d docker run.odt

dschaper commented 1 year ago

If you use docker compose then yes, docker compose up -d is the correct command. I don't know what you are using because you have twice ignored the request for information to be able to help you.

dschaper commented 1 year ago
root@pi-hole-CT:~/docker-pi-hole# docker ps
CONTAINER ID   IMAGE           COMMAND      CREATED         STATUS                            PORTS                            NAMES
7c8c318b3c9a   pihole/pihole   "/s6-init"   4 seconds ago   Up 4 seconds (health: starting)   53/udp, 53/tcp, 80/tcp, 67/udp   admiring_chatelet

That looks fine to me, as does:

  [i] Target: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
  [✓] Status: Retrieval successful
  [i] Imported 183304 domains, ignoring 1 non-domain entries
      Sample of non-domain entries:
        - 0.0.0.0
  [i] List has been updated

  [✓] Creating new gravity databases
  [✓] Storing downloaded domains in new gravity database
  [✓] Building tree
  [✓] Swapping databases
  [✓] The old database remains available.
  [i] Number of gravity domains: 183304 (183304 unique domains)
  [i] Number of exact blacklisted domains: 0
  [i] Number of regex blacklist filters: 0
  [i] Number of exact whitelisted domains: 0
  [i] Number of regex whitelist filters: 0
  [✓] Cleaning up stray matter

  [✓] FTL is listening on port 53
     [✓] UDP (IPv4)
     [✓] TCP (IPv4)
     [✓] UDP (IPv6)
     [✓] TCP (IPv6)

  [i] Pi-hole blocking will be enabled
  [i] Enabling blocking
  [✓] Pi-hole Enabled

  Pi-hole version is v5.15.5 (Latest: v5.15.5)
  AdminLTE version is v5.18.4 (Latest: v5.18.4)
  FTL version is v5.21 (Latest: v5.21)
  Container tag is: 2023.02.2

So, third try:

  1. docker-compose.yml contents, docker run shell command, or paste a screenshot of any UI based configuration of containers here
blademan007 commented 1 year ago

docker-compose.yml: root@pi-hole-CT:~/docker-pi-hole# more docker-compose.yml

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
    # For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
    ports:
      - "53:53/tcp"
      - "53:53/udp"
     # - "67:67/udp" # Only required if you are using Pi-hole as your DHCP server
      - "80:80/tcp"
    environment:
      TZ: 'US/Pacific'
      WEBPASSWORD: XXX 
    # Volumes store your data between container upgrades
    volumes:
      - './etc-pihole:/etc/pihole'
      - './etc-dnsmasq.d:/etc/dnsmasq.d'
    #   https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
    cap_add:
      - NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
    restart: unless-stopped

docker run shell command: docker run pihole/pihole

rdwebdesign commented 1 year ago

The command docker run pihole/pihole (without any extra options) will create a container using only the default values. The compose file with your options won't be used.

To use the contents of the compose file, you need to run docker compose up command.

github-actions[bot] commented 1 year ago

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.