Git Product home page Git Product logo

Comments (7)

KnotDing avatar KnotDing commented on June 12, 2024

另外,adguard的相关配置似乎没做持久化,比如DNS重写,DNS拦截清单等相关配置,重启就丢失了

from cleardns.

dnomd343 avatar dnomd343 commented on June 12, 2024

感谢提醒,文档中的确缺失了这部分选项介绍,本周内会补上。

adguard配置文件默认缓存在工作目录的 adguard 目录下,该目录在docker启动时是否有映射到主机?如果仍有错误,您可以在启动时加入 --verbose 选项获取详细的日志信息。

from cleardns.

KnotDing avatar KnotDing commented on June 12, 2024

ClearDNS 会将数据持久化存储,以在重启 Docker 或宿主机后保留配置及日志,上述命令将文件存储在工作目录 /etc/cleardns 下,您可以根据需要更改此目录。,文档中提及了数据持久化的内容,但是实际上adguard在界面上做的相关配置并没有持久化到/etc/cleardns目录下。

from cleardns.

dnomd343 avatar dnomd343 commented on June 12, 2024

AdGuardHome 在网页端的配置会被存储至工作目录下的 ./adguard/AdGuardHome.yaml 中,您可以查看该文件是否发生过变化?或者,是否您在启动 docker 容器时,将 --volume 命令的映射方向写反了?这也可能导致这个问题。

您可以列出工作文件夹下(即文档中提及的 /etc/cleardns/ 文件夹)的目录结构,或者提供一下运行日志。

from cleardns.

KnotDing avatar KnotDing commented on June 12, 2024

目录下只包含如下文件:
image
并没有adguard文件夹

from cleardns.

dnomd343 avatar dnomd343 commented on June 12, 2024

噢,确实是映射错目录了,这里是把容器内部的 /etc/cleardns/ 目录映射出来了(这是内部的缓存目录),正确的做法应该是映射 /cleardns/ 目录。

教程中是把宿主机的 /etc/cleardns/ 同步至容器内的 /cleardns/ 目录,如下:

docker … —volume /etc/cleardns/:/cleardns/ …

请检查启动命令中这两个目录是否倒置了。

from cleardns.

KnotDing avatar KnotDing commented on June 12, 2024

抱歉,是我配置错误了,这个issue我关闭了。

from cleardns.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.