How to resolve “Cannot retrieve .Id from docker” when building Docker image using Jenkins pipeline
问题 I am using a Jenkins pipeline to build a Dockerfile. The dockerfile successfully goes through all steps, and creates the docker image. As shown: Step 16/19 : FROM base AS final ---> <id> Step 17/19 : WORKDIR /app ---> Using cache ---> <id> Step 18/19 : COPY --from=publish /app . ---> Using cache ---> <id> Step 19/19 : ENTRYPOINT ["", "myapp.dll"] ---> Using cache ---> <id> Successfully built cb3y81938e88 Successfully tagged myapp:latest However, after this, the shell Fails with the following