Unable to find image 'xxxx' locally

55,802

Your project is being added to the image as /app. So, in the container, the project.json lives at /app/project.json. But your WORKDIR is set to /app/approot.

This effectively makes your ENTRYPOINT looking for project.json at /app/approot, which it does not exist. You'll either need to change WORKDIR to /app or COPY . /app/approot.

Share:
55,802
Admin
Author by

Admin

Updated on April 14, 2020

Comments

  • Admin
    Admin about 4 years

    Basically I created an asp.net mvc project. I added a Dockerfile in the project folder.

    FROM microsoft/aspnet:1.0.0-rc1-update1
    ADD . /app
    WORKDIR /app/approot
    EXPOSE 5004
    ENTRYPOINT ["./web"]
    

    Now I open Docker Quickstart Terminal on my Windows desktop. Running the command

    docker build -t hellodocker:0.1.0 .
    

    See the result docker

    However I can't find the image when I run it. find

    So what is wrong?

    EDIT

    Thanks for the comment, I correct the typo. But there is an another error. typo

    EDIT-1

    If I change the ENTRYPOINT as ENTRYPOINT ["dnx", "-p", "project.json", "web"]

    Then I get another error: Unable to reslolve project from /app/approot

    EDIT-2

    The context in the directory is as: directory