Failed To Resolve With FrontEnd DockerFIle.v0

后端 未结 9 2159
春和景丽
春和景丽 2021-01-17 10:49

I was trying to build my Docker image for my Gatsby Application. Whenever I run the command docker build . -t gatsbyapp, it gives me an error:

f         


        
相关标签:
9条回答
  • 2021-01-17 11:18

    In my case, I had an extra space after "." in context option

    docker build -t myapp .[EXTRA_SPACE_HERE]
    
    0 讨论(0)
  • 2021-01-17 11:19

    It was mention before:

    Please rename your docker files to:

    from .dockerfile to .Dockerfile no extension

    and make sure that if you have a .dockerignore then start with a lowercase d

    then in the command line run the following command to create the image.

    docker build -t yourapp:yourtag .

    For more information please refer to this documentation Dockerizing a React App

    0 讨论(0)
  • 2021-01-17 11:24

    If you are using docker desktop, restarting Docker worked for me. Troubleshoot -> Restart

    0 讨论(0)
提交回复
热议问题