Error on build and deploy, how can I fix it?

logispressHOBBY

7 months ago

From yesterday I have facing an error on build on railway,
The error is this:

3 [internal] load metadata for docker.io/library/debian:bookworm (http://docker.io/library/debian:bookworm)

Sep 28 00:04:11

Sep 28 00:04:12

#3 ERROR: failed to authorize: failed to fetch oauth token: unexpected status from GET request to https://auth.docker.io/token?scope=repository%3Alibrary%2Fdebian%3Apull&service=registry.docker.io: (https://auth.docker.io/token?scope=repository%3Alibrary%2Fdebian%3Apull&service=registry.docker.io) 401 Unauthorized

Sep 28 00:04:12

Sep 28 00:04:12

-----

Sep 28 00:04:12

> [internal] load metadata for docker.io/library/debian:bookworm (http://docker.io/library/debian:bookworm): (http://docker.io/library/debian:bookworm)

Sep 28 00:04:12

-----

Sep 28 00:04:12

Sep 28 00:04:12

Dockerfile:44

Sep 28 00:04:12

-------------------

Sep 28 00:04:12

42 |

Sep 28 00:04:12

43 | # start

Sep 28 00:04:12

44 | >>> FROM debian:bookworm

Sep 28 00:04:12

45 | ENTRYPOINT ["/bin/bash", "-l", "-c"]

Sep 28 00:04:12

46 | WORKDIR /app/

Sep 28 00:04:12

-------------------

Sep 28 00:04:12

ERROR: failed to solve: debian:bookworm: failed to resolve source metadata for docker.io/library/debian:bookworm (http://docker.io/library/debian:bookworm): (http://docker.io/library/debian:bookworm) failed to authorize: failed to fetch oauth token: unexpected status from GET request to https://auth.docker.io/token?scope=repository%3Alibrary%2Fdebian%3Apull&service=registry.docker.io: (https://auth.docker.io/token?scope=repository%3Alibrary%2Fdebian%3Apull&service=registry.docker.io) 401 Unauthorized

Sep 28 00:04:12

Sep 28 00:04:12

Error: Docker build failed

how can I fix it? what I should do?

Solved

0 Replies

Status changed to Solved brody 7 months ago