Closed mervynlam closed 11 months ago
docker版本换到23.0.3可以了。
Docker version 23.0.3, build 3e7cbfd
docker版本换到23.0.3可以了。
Docker version 23.0.3, build 3e7cbfd
但是有另一个问题
> [build 5/6] RUN go mod tidy:
#0 0.272 go: downloading github.com/gin-gonic/gin v1.9.0
#0 0.274 go: downloading github.com/gomodule/redigo v2.0.0+incompatible
#0 30.30 go: downloading github.com/sirupsen/logrus v1.9.0
#0 60.30 github.com/CareyWang/MyUrls imports
#0 60.30 github.com/gin-gonic/gin: github.com/gin-gonic/gin@v1.9.0: Get "https://proxy.golang.org/github.com/gin-gonic/gin/@v/v1.9.0.zip": dial tcp 172.217.163.49:443: i/o timeout
#0 60.30 github.com/CareyWang/MyUrls imports
#0 60.30 github.com/gomodule/redigo/redis: github.com/gomodule/redigo@v2.0.0+incompatible: Get "https://proxy.golang.org/github.com/gomodule/redigo/@v/v2.0.0+incompatible.zip": dial tcp 172.217.163.49:443: i/o timeout
#0 60.30 github.com/CareyWang/MyUrls imports
#0 60.30 github.com/sirupsen/logrus: github.com/sirupsen/logrus@v1.9.0: Get "https://proxy.golang.org/github.com/sirupsen/logrus/@v/v1.9.0.zip": dial tcp 142.251.42.241:443: i/o timeout
------
failed to solve: process "/bin/sh -c go mod tidy" did not complete successfully: exit code: 1
要在Dockerfile
中RUN go mod tidy
前加一行RUN go env -w GOPROXY=https://goproxy.cn
docker版本