-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker build error #415
Comments
Hi, I tried to reproduce the this issue and it appears to have gone away. I suspect the gcr.io connection issue was transient. Please try again, and let me know if the issue still persists. |
I tried again, but the problem still persists. I tried to access the website “https://gcr.io/v2/” in browser, and the raw data returned by server is as follows.
The request headers are as follows.
the response headers are as follows
Is there anything wrong with my network connection or project configuration? I haven't made any changes to any files in this project. |
As far as I can tell this is not an issue with the package-feeds project. A search of the web shows this as an occasional problem for other docker users. |
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?
The text was updated successfully, but these errors were encountered: