Open sahildhargave opened 7 months ago
[api builder 8/9] RUN curl -L https://github.com/golang-migrate/migrate/releases/download/v4.14.0/migrate.linux-amd64.tar.gz | tar xvz: 1.233 % Total % Received % Xferd Average Speed Time Time Time Current 1.235 Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:- 0 0 0 0 0 0 0 0 --:--:- 0 0 0 0 0 0 0 0 --:--:- 0 0 0 0 0 0 0 0 --:--:- 0 0 0 0 0 0 0 0 --:--:- 0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0curl: (6) Could not resolve host: github.com 6.240 tar: invalid magic 6.240 tar: short read failed to solve: process "/bin/sh -c curl -L https://github.com/golang-migrate/migrate/releases/download/v4.14.0/migrate.linux-amd64.tar.gz | tar xvz" did not complete successfully: exit code: 1
failed to solve: process "/bin/sh -c curl -L https://github.com/golang-migrate/migrate/releases/download/v4.14.0/migrate.linux-amd64.tar.gz | tar xvz" did not complete successfully: exit code: 1
power off then restart docker the issue will resolve
CMD ["./main"] docker compose up [+] Building 0.0s (0/0) docker:default 2024/03/18 05:43:17 http2: server: error reading preface from client //./pipe/docker_engine: file has alre[+] Building 306.5s (16/22) docker:default => [api internal] load build definition from 0.3s => => transferring dockerfile: 819B 0.1s => [api internal] load metadata for docker.io 2.0s => [api internal] load metadata for docker.io 2.0s => [api auth] library/golang:pull token for r 0.0s => [api auth] library/alpine:pull token for r 0.0s => [api internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [api internal] load build context 1.0s => => transferring context: 49.75kB 1.0s => [api builder 1/9] FROM docker.io/library/g 0.2s => => resolve docker.io/library/golang:1.21-a 0.1s => [api stage-1 1/6] FROM docker.io/library/a 0.2s => => resolve docker.io/library/alpine:3.18@s 0.2s => CACHED [api builder 2/9] WORKDIR /app 0.0s => CACHED [api builder 3/9] COPY go.mod go.su 0.0s => CACHED [api builder 4/9] RUN go mod downlo 0.0s => [api builder 5/9] COPY . . 8.1s => [api builder 6/9] RUN go build -o main m 268.2s => [api builder 7/9] RUN apk add --no-cache 18.8s => ERROR [api builder 8/9] RUN curl -L https: 6.8s