通过 docker inspect mysql8.0.32 命令查看 分配给 mysql8.0.32 容器的 IP Adress web 容器DB config 的host填写 mysql容器的 IPAdress 然后web程序就不报错了