I only installed this pihole docker thing a few days ago. As I said I tried to insert this YouTube ad blocker script thing and decided to back that out. I think I did a docker pull
to update the container at one point. I definitely did not do anything with pihole 3 years ago... perhaps 1 or 2 weeks ago was the first time I started playing with pihole. As such I have no backups of any dbs.
IIRC neither /etc/pihole
nor /etc/dnsmasq.d
were previously mounted. So then if I remove the volume mounts from the docker container I should be back to normal (perhaps just missing the adlists I configured) since docker volume mounts are essentially mount overs of a directory. OK did that and I see the old contents of /etc/pihole
and /etc/dnsmasq.d
in the container. I re-added my adlists and I'm back up. But I still see the error about PHP memory limit. I'm gonna re-add my mount for the php.ini file.
OK, still getting the PHP memory error.
Here's the new config in JSON:
{
"CapAdd" : null,
"CapDrop" : null,
"cmd" : "",
"cpu_priority" : 50,
"enable_publish_all_ports" : false,
"enable_restart_policy" : false,
"enable_service_portal" : null,
"enabled" : true,
"env_variables" : [
{
"key" : "PATH",
"value" : "/opt/pihole:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
},
{
"key" : "phpver",
"value" : "php"
},
{
"key" : "PHP_ERROR_LOG",
"value" : "/var/log/lighttpd/error-pihole.log"
},
{
"key" : "IPv6",
"value" : "True"
},
{
"key" : "S6_KEEP_ENV",
"value" : "1"
},
{
"key" : "S6_BEHAVIOUR_IF_STAGE2_FAILS",
"value" : "2"
},
{
"key" : "S6_CMD_WAIT_FOR_SERVICES_MAXTIME",
"value" : "0"
},
{
"key" : "FTLCONF_LOCAL_IPV4",
"value" : "0.0.0.0"
},
{
"key" : "FTL_CMD",
"value" : "no-daemon"
},
{
"key" : "DNSMASQ_USER",
"value" : "pihole"
},
{
"key" : "WEBPASSORD",
"value" : "***redacted***"
},
{
"key" : "WEB_PORT",
"value" : "8001"
},
{
"key" : "DNSMASQ_LISTENING",
"value" : "local"
},
{
"key" : "ServerIP",
"value" : "192.168.86.31"
}
],
"exporting" : false,
"id" : "1cdacf78cbf22cac958371588ea796240318ebad54ce01e6522a924b9a0b5ff9",
"image" : "pihole/pihole:latest",
"is_ddsm" : false,
"is_package" : false,
"links" : [],
"memory_limit" : 0,
"name" : "pihole",
"network" : [
{
"driver" : "host",
"name" : "host"
}
],
"network_mode" : "host",
"port_bindings" : [],
"privileged" : false,
"shortcut" : {
"enable_shortcut" : false,
"enable_status_page" : false,
"enable_web_page" : false,
"web_page_url" : ""
},
"use_host_network" : true,
"volume_bindings" : [
{
"host_volume_file" : "/docker/pihole/php/user.ini",
"mount_point" : "/var/www/html/user.ini",
"type" : "rw"
}
]
}
And user.ini contains:
Jupiter:docker exec -it pihole cat /var/www/html/user.ini
; Note this should be "mounted" to /var/www/html/user.ini in the Docker
; configuration.
;
; Maximum amount of memory a script may consume
; http://php.net/memory-limit
memory_limit = 512M
Jupiter:
Should/Can I just reinitialize the database somehow?