Gitea邮箱问题:gomail: could not send email 1: failed to establish network connection to SMTP server: dial tcp: lookup smtp.126.com on 127.0.0.11:53: read udp 127.0.0.1:32909->127.0.0.11:53: i/o timeout

问题:

gomail: could not send email 1: failed to establish network connection to SMTP server: dial tcp: lookup smtp.126.com on 127.0.0.11:53: read udp 127.0.0.1:32909->127.0.0.11:53: i/o timeout

 

    解决方法:

    在宝塔面板中Docker->设置->加速url

    填写国内加速url就可以了

    国内常用的加速站点

    docker中国区官方镜像加速:

    https://registry.docker-cn.com

    网易镜像加速:

    http://hub-mirror.c.163.com

    中国科技大学镜像加速:

    https://docker.mirrors.ustc.edu.cn

    腾讯云镜像加速:

    https://mirror.ccs.tencentyun.com

    阿里云镜像加速:

    https://ung2thfc.mirror.aliyuncs.com

    Ubuntu中添加镜像加速

    创建或修改/etc/docker/daemon.json文件
    默认没有daemon文件,先创建。

    vim /etc/docker/daemon.json

    添加如下内容:

    {
        "registry-mirrors": [
        "https://ung2thfc.mirror.aliyuncs.com ",
        "https://registry.docker-cn.com",
        "http://hub-mirror.c.163.com",
        "https://docker.mirrors.ustc.edu.cn"
      ]
    }

     

    阅读剩余
    THE END