jetsung Docker 容器使用宿主机的数据库等网络 docker run --add-host=host.docker.internal:host-gateway your_image_name docker compose extra_hosts: - "host.docker.internal:host-gateway"