Seeing no stage or image found with that name level=error msg="exit status 1" during docker build
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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