Repository navigation
Docker build warnings and errors #25
Copy link
Copy link
Closed
Labels
Description
I'm trying to execute make docker to build the binary and the docker image but I'm getting multiple depreciation warnings and errors.
➜ sync git:(main) make docker
docker build -t aixgo-sync:local .
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
ERROR: (gcloud.auth.docker-helper) There was a problem refreshing your current auth tokens: Reauthentication failed. cannot prompt during non-interactive execution.
Please run:
$ gcloud auth login
to obtain new credentials.
If you have already logged in with a different account, run:
$ gcloud config set account ACCOUNT
to select an already authenticated account to use.
time="2026-09-19T22:14:06+09:00" level=warning msg="Failed to get credentials for registry: asia-northeast1-docker.pkg.dev" error="error getting credentials - err: exit status 1, out: ``"
ERROR: (gcloud.auth.docker-helper) There was a problem refreshing your current auth tokens: Reauthentication failed. cannot prompt during non-interactive execution.
Please run:
$ gcloud auth login
to obtain new credentials.
If you have already logged in with a different account, run:
$ gcloud config set account ACCOUNT
to select an already authenticated account to use.
time="2026-09-19T22:14:07+09:00" level=warning msg="Failed to get credentials for registry: gcr.io" error="error getting credentials - err: exit status 1, out: ``"
ERROR: (gcloud.auth.docker-helper) There was a problem refreshing your current auth tokens: Reauthentication failed. cannot prompt during non-interactive execution.
Please run:
$ gcloud auth login
to obtain new credentials.
If you have already logged in with a different account, run:
$ gcloud config set account ACCOUNT
to select an already authenticated account to use.
time="2026-09-19T22:14:07+09:00" level=warning msg="Failed to get credentials for registry: us-central1-docker.pkg.dev" error="error getting credentials - err: exit status 1, out: ``"
Sending build context to Docker daemon 178.7kB
Step 1/16 : FROM golang:1.24-alpine AS builder
1.24-alpine: Pulling from library/golang
4f4fb700ef54: Pulling fs layer
f5657497bb46: Pulling fs layer
0967cf60864b: Pulling fs layer
2b15849378b4: Pulling fs layer
4f4fb700ef54: Already exists
4f4fb700ef54: Pull complete
0967cf60864b: Download complete
9152f4e34ebd: Download complete
2b15849378b4: Download complete
2b15849378b4: Pull complete
f3f5213e5ac7: Download complete
f5657497bb46: Download complete
0967cf60864b: Pull complete
f5657497bb46: Pull complete
Digest: sha256:8bee1901f1e530bfb4a7850aa7a479d17ae3a18beb6e09064ed54cfd245b7191
Status: Downloaded newer image for golang:1.24-alpine
---> 8bee1901f1e5
Step 2/16 : WORKDIR /app
---> Running in 2533dc371196
---> Removed intermediate container 2533dc371196
---> c0c8fae82636
Step 3/16 : COPY go.mod go.sum ./
---> 03cb595ff25e
Step 4/16 : RUN go mod download
---> Running in d1f4eefa56b8
---> Removed intermediate container d1f4eefa56b8
---> 65a9612c134b
Step 5/16 : COPY . .
---> 0018ebb023cd
Step 6/16 : RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /aixgo-sync ./cmd/aixgo-sync
---> Running in 2f1f8d3726ad
---> Removed intermediate container 2f1f8d3726ad
---> a48a41645d9c
Step 7/16 : FROM alpine:latest AS certs
---> 28bd5fe8b56d
Step 8/16 : RUN apk --no-cache add ca-certificates
---> Running in 0ebdb436695b
(1/1) Installing ca-certificates (20260909-r0)
Executing busybox-1.37.0-r31.trigger
Executing ca-certificates-20260909-r0.trigger
OK: 8747 KiB in 17 packages
---> Removed intermediate container 0ebdb436695b
---> 2041890dea36
Step 9/16 : FROM scratch
--->
Step 10/16 : COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
---> c333ac76bf0d
Step 11/16 : ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
---> Running in 42bf7fd50102
---> Removed intermediate container 42bf7fd50102
---> 1d1290afad13
Step 12/16 : COPY --from=builder /aixgo-sync /aixgo-sync
---> 652d3ec639d2
Step 13/16 : EXPOSE 8080
---> Running in 94e9c5e81fe2
---> Removed intermediate container 94e9c5e81fe2
---> 3a46aeb45202
Step 14/16 : USER 10001:10001
---> Running in c0c554ed5baa
---> Removed intermediate container c0c554ed5baa
---> 6e690e25d513
Step 15/16 : ENTRYPOINT ["/aixgo-sync"]
---> Running in e8666a3d0768
---> Removed intermediate container e8666a3d0768
---> 897f6653be26
Step 16/16 : CMD ["serve"]
---> Running in 0ab00f60a284
---> Removed intermediate container 0ab00f60a284
---> 93d149e6e473
Successfully built 93d149e6e473
Successfully tagged aixgo-sync:local
Activity