logto-io / go

☁️ Logto Golang SDKs.
MIT License
17 stars 11 forks source link

bug: lookup 0.0.0: no such host #107

Closed flohoss closed 6 months ago

flohoss commented 6 months ago

Describe the bug

[GIN-debug] [ERROR] listen tcp: lookup 0.0.0: no such host

Expected behavior

Gin to start on 0.0.0.0 with port 8080

How to reproduce?

Run code in docker

services:
  go:
    build:
      context: .
      dockerfile_inline: |
        FROM golang:1.22-alpine
        RUN apk add git
        WORKDIR /app
        RUN git clone https://github.com/logto-io/go.git
        WORKDIR /app/go/gin-sample
        RUN go mod download
        CMD go run .
    ports:
      - 8080:8080