Docker 数据库连接见解异常 SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Try again

Docker 配置 DNS

{
    "builder": {
        "gc": {
            "defaultKeepStorage": "20GB",
            "enabled": true
        }
    },
    "experimental": false,
    "features": {
        "buildkit": true
    },
    "registry-mirrors": [
        "https://oimy1q5h.mirror.aliyuncs.com"
    ],
    "dns": [
        "8.8.8.8",
        "114.114.114.114"
    ]
}

 

posted @ 2024-01-12 10:00  Tinywan  阅读(27)  评论(0编辑  收藏  举报