When I run the command "docker build . -t local-package-feeds", an error occured as follows:
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
environment-variable.
Sending build context to Docker daemon 603.6kB
Step 1/10 : FROM golang:1.20.5-buster@sha256:eb3f9ac805435c1b2c965d63ce460988e1000058e1f67881324746362baf9572 as builder
---> c94784fe2595
Step 2/10 : WORKDIR /app
---> Using cache
---> 0e46dc699e16
Step 3/10 : ENV CGO_ENABLED=0
---> Using cache
---> a423716eb306
Step 4/10 : COPY go.* ./
---> Using cache
---> 8d30d18e463c
Step 5/10 : RUN go mod download
---> Using cache
---> 0ccb387d027b
Step 6/10 : COPY . ./
---> Using cache
---> 9686bb44b90d
Step 7/10 : RUN go build -mod=readonly -v -o server ./cmd/scheduled-feed
---> Using cache
---> e21bd3134248
Step 8/10 : FROM gcr.io/distroless/base:nonroot
Get "https://gcr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
It seems that the domain can not be connected, how to solve this problem?
When I run the command "docker build . -t local-package-feeds", an error occured as follows:
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
environment-variable.
Sending build context to Docker daemon 603.6kB
Step 1/10 : FROM golang:1.20.5-buster@sha256:eb3f9ac805435c1b2c965d63ce460988e1000058e1f67881324746362baf9572 as builder
---> c94784fe2595
Step 2/10 : WORKDIR /app
---> Using cache
---> 0e46dc699e16
Step 3/10 : ENV CGO_ENABLED=0
---> Using cache
---> a423716eb306
Step 4/10 : COPY go.* ./
---> Using cache
---> 8d30d18e463c
Step 5/10 : RUN go mod download
---> Using cache
---> 0ccb387d027b
Step 6/10 : COPY . ./
---> Using cache
---> 9686bb44b90d
Step 7/10 : RUN go build -mod=readonly -v -o server ./cmd/scheduled-feed
---> Using cache
---> e21bd3134248
Step 8/10 : FROM gcr.io/distroless/base:nonroot
Get "https://gcr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
It seems that the domain can not be connected, how to solve this problem?