Probleem met Pihole Container DNS

Pagina: 1
Acties:

Acties:
  • 0 Henk 'm!

  • Tyrian81
  • Registratie: December 2013
  • Laatst online: 16-09 20:03
Heb een Coreelec boxje , met meerdere containers draaiende, allemaal vlekkeloos.

Alleen Pihole krijg ik niet in de lucht ?

Mijn compose :

Afbeeldingslocatie: https://i.ibb.co/jJBzggy/Compose.jpg]


geeft dan de volgende melding in logs :
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
::: Starting docker specific checks & setup for docker pihole/pihole
WARNING Misconfigured DNS in /etc/resolv.conf: Two DNS servers are recommended, 127.0.0.1 and any backup server
WARNING Misconfigured DNS in /etc/resolv.conf: Primary DNS should be 127.0.0.1 (found 127.0.0.11)
search home
nameserver 127.0.0.11
options ndots:0
Failed to set capabilities on file `/usr/bin/pihole-FTL' (Operation not supported)
The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file
  [i] Update local cache of available packages...
  [✓] Update local cache of available packages
  [i] Existing PHP installation detected : PHP version 7.0.33-0+deb9u8
  [i] Installing configs from /etc/.pihole...
  [i] Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!
  [i] Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf...
  [✓] Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf
mv: cannot move '/etc/lighttpd/lighttpd.conf' to a subdirectory of itself, '/etc/lighttpd/lighttpd.conf.orig'
[cont-init.d] 20-start.sh: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] 01-resolver-resolv: applying... 
[fix-attrs.d] 01-resolver-resolv: exited 0.
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 20-start.sh: executing...


Mocht iemand een idee hebben wat het probleem zou kunnen zijn, hoor ik het graag...

Acties:
  • 0 Henk 'm!

  • CH4OS
  • Registratie: April 2002
  • Niet online

CH4OS

It's a kind of magic

Mijn docker-compose is als volgt:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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: 'Europe/Amsterdam'
      WEBPASSWORD: '***MASKED***'
      ServerIP: '192.168.0.4'
    # ServerIPv6: '2a01:90a0:1ff:f800:354a:67e8:a54:8da3'
    # Volumes store your data between container upgrades
    volumes:
       - './etc-pihole/:/etc/pihole/'
       - './etc-dnsmasq.d/:/etc/dnsmasq.d/'
    dns:
      - 127.0.0.1
      - 1.1.1.1
    # Recommended but not required (DHCP needs NET_ADMIN)
    #   https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
    #cap_add:
    #  - NET_ADMIN
    restart: unless-stopped

Hiermee draait mijn Pi-Hole container prima op een Pi3b. Nu ken ik de Coreelec boxjes niet, maar wellicht is het een architectuur issue, dat die niet wordt ondersteund door het image? Maar dan zou de container niet eens mogen booten. Kijkend naar de foutmelding in de log zelf, denk ik ook niet dat het een Docker probleem is;
Failed to set capabilities on file `/usr/bin/pihole-FTL' (Operation not supported)
The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file
Ik zou dus even kijken of er een nieuwere versie van het image is, wellicht dat dat jouw probleem oplost.

[ Voor 28% gewijzigd door CH4OS op 25-07-2020 13:14 ]


Acties:
  • 0 Henk 'm!

  • Tyrian81
  • Registratie: December 2013
  • Laatst online: 16-09 20:03
CH4OS schreef op zaterdag 25 juli 2020 @ 13:05:
Mijn docker-compose is als volgt:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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: 'Europe/Amsterdam'
      WEBPASSWORD: '***MASKED***'
      ServerIP: '192.168.0.4'
    # ServerIPv6: '2a01:90a0:1ff:f800:354a:67e8:a54:8da3'
    # Volumes store your data between container upgrades
    volumes:
       - './etc-pihole/:/etc/pihole/'
       - './etc-dnsmasq.d/:/etc/dnsmasq.d/'
    dns:
      - 127.0.0.1
      - 1.1.1.1
    # Recommended but not required (DHCP needs NET_ADMIN)
    #   https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
    #cap_add:
    #  - NET_ADMIN
    restart: unless-stopped

Hiermee draait mijn Pi-Hole container prima op een Pi3b. Nu ken ik de Coreelec boxjes niet, maar wellicht is het een architectuur issue, dat die niet wordt ondersteund door het image? Maar dan zou de container niet eens mogen booten.
Zou moeten kunnen draaien op ARM architectuur , is een kodi box en daar staat hij zelfs tussen de addons repo ( niet op deze manier geinstalleerd trouwens)
De mijne hierop aangepast dus serverIP: toegevoegd en DHCP # -net_admin uitgezet.

Geeft zelfde resultaat in logs , Primary DNS should be : 127.0.0.1 maar is .11 ?

[ Voor 5% gewijzigd door Tyrian81 op 25-07-2020 13:17 ]


Acties:
  • 0 Henk 'm!

  • HKLM_
  • Registratie: Februari 2009
  • Laatst online: 07:13
Als je Google op Docker en 127.0.0.11 kom je best wat hits tegen

https://forums.docker.com...-127-0-0-11-problem/40577

https://github.com/docker/for-linux/issues/392

Cloud ☁️


  • illusion.tw
  • Registratie: December 2010
  • Laatst online: 06-06 09:51
Hallo,

Ik wou dit net werkende krijgen vandaag, en had hetzelfde resultaat.

Ik kreeg het opgelost dankzij de post van Lucifersan op deze pagina:

https://discourse.coreele...-and-configuration/8694/6

Ik gebruikte ook niet "latest" maar pihole/pihole:v5.1.2-arm64-buster

[ Voor 13% gewijzigd door illusion.tw op 30-09-2020 21:53 ]

illiewillie BF3 BF4