Coder Social home page Coder Social logo

Comments (5)

tony1016 avatar tony1016 commented on July 22, 2024

DNS相关配置如下

dns:
  enable: true
  ipv6: false
  listen: 0.0.0.0:53
  # enhanced-mode: redir-host
  nameserver:
     - 114.114.114.114
     - 223.5.5.5
     - tls://dns.rubyfish.cn:853 # dns over tls
  fallback: # 与 nameserver 内的服务器列表同时发起请求,当规则符合 GEOIP 在 CN 以外时,fallback 列表内的域名服务器生效。
     - 114.114.114.114
     - tls://dns.rubyfish.cn:853 # dns over tls
     - 8.8.8.8
     - 192.168.193.53

from clash.

Dreamacro avatar Dreamacro commented on July 22, 2024

我这里测试 0.10.2 是可以的,但是我这里也遇到了一个问题:你应该是使用了类似 http://registry.docker-cn.com 之类的镜像仓库吧?

我试着拉了一下 latest 但发现是旧版的 clash,但是指定版本号拉就没有问题,可能是由于缓存原因导致的。我在 VPS 上拉原始仓库的 latest 就没有问题。你可以先看看镜像日期是否正确。

from clash.

tony1016 avatar tony1016 commented on July 22, 2024

我这里测试 0.10.2 是可以的,但是我这里也遇到了一个问题:你应该是使用了类似 http://registry.docker-cn.com 之类的镜像仓库吧?

我试着拉了一下 latest 但发现是旧版的 clash,但是指定版本号拉就没有问题,可能是由于缓存原因导致的。我在 VPS 上拉原始仓库的 latest 就没有问题。你可以先看看镜像日期是否正确。

并没有啊,我用的是hub.docker.com的镜像

dreamacro/clash                        latest              5cb569f307aa        7 days ago          16.6MB

不过很奇怪,我试了诸如dnscrypt-proxy这样的docker镜像,也是tcp是好的,udp失败,难道是我的Docker for Mac的问题??

from clash.

Dreamacro avatar Dreamacro commented on July 22, 2024

我也是 docker for mac,我这里是 ok 的,我的 docker-compose.yml

version: '3'
services:
  clash:
    image: dreamacro/clash:0.10.2
    volumes:
      - ./config.yml:/root/.config/clash/config.yml
    ports:
      - "6667:7890"
      - "6668:7891"
      - "53:53/udp"
    restart: always
    network_mode: "bridge"
    container_name: clash

from clash.

tony1016 avatar tony1016 commented on July 22, 2024

Don't know why but works again

from clash.

Related Issues (20)

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.