3

Docker 数据库连接见解异常 SQLSTATE[HY000] [2002] php_network_getaddresses: getad...

 7 months ago
source link: https://www.cnblogs.com/tinywan/p/17960054
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

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"
    ]
}

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK