Code Monkey home page Code Monkey logo

Comments (3)

yosifkit avatar yosifkit commented on June 20, 2024

Can you share the Dockerfile. The base image has not existed for many years. I would guess that the base in your Dockerfile is supposed to be another stage's name.

from official-images.

LaurentGoderre avatar LaurentGoderre commented on June 20, 2024

I think more specifically the problem would be in one of the FROM directive lines. If you are unable to post the whole file, just these lines would be helpful.

from official-images.

bityob avatar bityob commented on June 20, 2024

Hey @yosifkit @LaurentGoderre ,

Indeed I had a bug in my Dockerfile.

I tried to comment out some parts because of some issue I was debugging, and this resulted in a Dockerfile like this -

#FROM ubuntu as base
FROM ubuntu as release

#FROM base as build
#RUN touch /tmp/demo

FROM base as release
#COPY --from=build /tmp/demo /tmp/demo

With this output -

 => [internal] load build definition from Dockerfile                                                                                                                                   0.0s
 => => transferring dockerfile: 189B                                                                                                                                                   0.0s
 => ERROR [internal] load metadata for docker.io/library/base:latest                                                                                                                   1.4s
 => [auth] library/base:pull token for registry-1.docker.io                                                                                                                            0.0s
------
 > [internal] load metadata for docker.io/library/base:latest:
------
Dockerfile:7
--------------------
   5 |     #RUN touch /tmp/demo
   6 |
   7 | >>> FROM base as release
   8 |     #COPY --from=build /tmp/demo /tmp/demo
   9 |
--------------------
ERROR: failed to solve: base: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed

Instead of

FROM ubuntu as base

FROM base as build
RUN touch /tmp/demo

FROM base as release
COPY --from=build /tmp/demo /tmp/demo

So indeed there was no stage base image anymore, resulting in this error.

Thank you!

from official-images.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.