{"id":19497,"date":"2022-08-18T08:50:33","date_gmt":"2022-08-18T12:50:33","guid":{"rendered":"https:\/\/nuxx.net\/blog\/?p=19497"},"modified":"2022-08-18T08:50:33","modified_gmt":"2022-08-18T12:50:33","slug":"upgrading-pi-hole-on-docker-on-synology-dsm","status":"publish","type":"post","link":"https:\/\/nuxx.net\/blog\/2022\/08\/18\/upgrading-pi-hole-on-docker-on-synology-dsm\/","title":{"rendered":"Upgrading Pi-Hole on Docker on Synology DSM"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"alignright size-full is-resized\"><a href=\"https:\/\/nuxx.net\/blog\/wp-content\/uploads\/2022\/08\/image.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/nuxx.net\/blog\/wp-content\/uploads\/2022\/08\/image.png\" alt=\"\" class=\"wp-image-19499\" width=\"238\" height=\"164\" srcset=\"https:\/\/nuxx.net\/blog\/wp-content\/uploads\/2022\/08\/image.png 476w, https:\/\/nuxx.net\/blog\/wp-content\/uploads\/2022\/08\/image-300x207.png 300w\" sizes=\"auto, (max-width: 238px) 100vw, 238px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>At home I use <a href=\"https:\/\/pi-hole.net\/\">Pi-Hole<\/a> running via <a href=\"https:\/\/www.docker.com\/\">Docker<\/a> on a <a href=\"https:\/\/global.download.synology.com\/download\/Document\/Hardware\/DataSheet\/DiskStation\/19-year\/DS1019+\/enu\/Synology_DS1019_Plus_Data_Sheet_enu.pdf\">Synology DS1019+<\/a> (details <a href=\"https:\/\/nuxx.net\/blog\/2021\/01\/08\/pi-hole-via-docker-on-synology-dsm-with-bonded-network-interface\/\">here<\/a>). Every once in a while I update this, but it seems to be long enough between updates that I forget the exact steps, so I&#8217;m documenting them here.<\/p>\n\n\n\n<p>This is the simplest update process I know of. It keeps the configuration the same but updates the container itself. Because the volumes for persistent storage are not changed and the custom environment variables stay the same, all settings are preserved.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Log into DSM.<\/li><li>Launch Docker.<\/li><li>In Docker, update the image:<ul><li><em>Registry<\/em><\/li><li>Search for <em>pihole<\/em><\/li><li>Select <em>pihole\/pihole<\/em> (ensure it is <a href=\"https:\/\/registry.hub.docker.com\/r\/pihole\/pihole\/\">the official image<\/a>)<\/li><li>Click <em>Download<\/em><\/li><\/ul><\/li><li>Stop and reset the container:<ul><li><em>Container<\/em><\/li><li>Select your Pi-hole container.<\/li><li><em>Stop<\/em><\/li><li><em>Reset<\/em><\/li><li><em>Start<\/em><\/li><\/ul><\/li><li>Wait a few minutes, then log back in to Pi-Hole (eg: <a href=\"http:\/\/pi.hole:8081\/admin\/\">http:\/\/pi.hole:8081\/admin\/<\/a>)<\/li><li>At the bottom of the page observe updated versions. Check <a href=\"https:\/\/github.com\/pi-hole\/docker-pi-hole\/releases\">here<\/a> for the latest version of the Docker image, for comparison.<\/li><\/ol>\n\n\n\n<p>Note: This process presumes you have configured volumes mounted to <code>\/etc\/dnsmasq.d<\/code> and <code>\/etc\/pihole<\/code>, and have set environment variables <code>INTERFACE<\/code>, <code>WEB_PORT<\/code>, <code>WEBPASSWORD<\/code>, and <code>TZ<\/code>. Without these your results may vary.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>At home I use Pi-Hole running via Docker on a Synology DS1019+ (details here). Every once in a while I update this, but it seems&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/nuxx.net\/blog\/2022\/08\/18\/upgrading-pi-hole-on-docker-on-synology-dsm\/\">Continue reading<span class=\"screen-reader-text\">Upgrading Pi-Hole on Docker on Synology DSM<\/span><\/a><\/div>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-19497","post","type-post","status-publish","format-standard","hentry","category-computers","entry"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts\/19497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/comments?post=19497"}],"version-history":[{"count":3,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts\/19497\/revisions"}],"predecessor-version":[{"id":19501,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts\/19497\/revisions\/19501"}],"wp:attachment":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/media?parent=19497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/categories?post=19497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/tags?post=19497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}