docker / docker/cli

Seeing no stage or image found with that name level=error msg="exit status 1" during docker build

Open
#3,995 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/builder kind/question
Dominant language
Go
Stars
6.1k
Forks
2.2k
Avg merge
1d 15h
Merged PRs (30d)
43

Description

Description

I am new to docker. When building docker image in Jenkins, seeing "no stage or image found with that name
level=error msg="exit status 1"

FROM {image} AS build
WORKDIR /App
COPY . ./

RUN dotnet restore
RUN dotnet publish -c Release -o out

# Build runtime image
FROM {image}
WORKDIR /App
RUN bash -c "pwd"
RUN bash -c "ls -lart"
COPY --from=build /App/out .
RUN bash -c "pwd"
RUN bash -c "ls -lart"
COPY --from=web URL/linux/oneagent-codemodules:dotnet-raw / /      -- at this step I'm seeing no stage or image found with that name error

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The payload names only the Dockerfile; begin by reproducing the Jenkins docker build and inspecting the COPY --from line. Done would require a confirmed, actionable change or documentation target, plus a reproducible result, which the issue does not currently specify.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
build-system, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.