maillog2db
maillog2db copied to clipboard
Error when compiling - library tail not available
Hi, we have an issue when compiling: docker build -t maillog2db . Sending build context to Docker daemon 5.118MB Step 1/7 : FROM golang:1.14.4 AS builder 1.14.4: Pulling from library/golang e9afc4f90ab0: Pull complete 989e6b19a265: Pull complete af14b6c2f878: Pull complete 5573c4b30949: Pull complete d4020e2aa747: Pull complete 85383fed8a84: Pull complete 0bdb3996894f: Pull complete Digest: sha256:d31a307a7e42116adb00d8d70971dbf228460904dd9b6217e911d088aa4b650c Status: Downloaded newer image for golang:1.14.4 ---> 00d970a31ef2 Step 2/7 : WORKDIR /app ---> Running in e97ed3d74803 Removing intermediate container e97ed3d74803 ---> 5d7ce43baf0e Step 3/7 : COPY go.mod go.sum maillog2db.go ./ ---> 83f6f84c1d84 Step 4/7 : RUN go mod download && CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -o app ---> Running in fe25cf86d7eb go: github.com/ActiveState/[email protected]: Get "https://proxy.golang.org/github.com/%21active%21state/tail/@v/v1.0.0.mod": dial tcp: i/o timeout The command '/bin/sh -c go mod download && CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -o app' returned a non-zero code: 1
What is yours operating system ?
It's Ubuntu 18.04.5
Docker version: Client: Docker Engine - Community Version: 20.10.5 API version: 1.41 Go version: go1.13.15 Git commit: 55c4c88 Built: Tue Mar 2 20:18:05 2021 OS/Arch: linux/amd64 Context: default Experimental: true
Server: Docker Engine - Community Engine: Version: 20.10.5 API version: 1.41 (minimum version 1.12) Go version: go1.13.15 Git commit: 363e9a8 Built: Tue Mar 2 20:16:00 2021 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.4.4 GitCommit: 05f951a3781f4f2c1911b05e61c160e9c30eaa8e runc: Version: 1.0.0-rc93 GitCommit: 12644e614e25b05da6fd08a38ffa0cfe1903fdec docker-init: Version: 0.19.0 GitCommit: de40ad0