I'm trying to get PiHole to run in a docker on my raspberry pi 4. For some reason I'm unable to solve an issue with lighttpd.
pihole: container_name: pihole image: pihole/pihole:latest network_mode: host environment: TZ: 'Europe/Amsterdam' WEBPASSWORD: 'helloW0rld' # temporary SERVERIP: 192.168.178.5 volumes: - './etc-pihole/:/etc/pihole/' - './etc-dnsmasq.d/:/etc/dnsmasq.d/' dns: - 127.0.0.1 - 22.214.171.124 # 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
docker-compose up -d pihole; docker-compose logs -tf --tail="50" pihole
Provides a returning error such as below:
pihole | 2020-02-17T18:43:24.256524171Z Starting lighttpd pihole | 2020-02-17T18:43:24.364843550Z 2020-02-17 19:43:24: (network.c.464) can't bind to port: 127.0.0.1 80 Address already in use pihole | 2020-02-17T18:43:24.382772710Z Stopping lighttpd pihole | 2020-02-17T18:43:24.389610163Z lighttpd: no process found
SERVERIP already as environment variable as suggested in this issue tracker but it doesn't make any difference as without adding this variable.