Can't create a docker image for COPY failed: stat /var/lib/docker/tmp/docker-builder error

前端 未结 18 1976
余生分开走
余生分开走 2020-12-03 00:07

I want to create a docker image. This is my work directory: Dockerfile.in test.json test.py

And this is my Dockerfile:

COPY ./test.json /home/tes         


        
18条回答
  •  隐瞒了意图╮
    2020-12-03 00:44

    In my case, I had to put all my project files into a subdirectory

    app -|inside app directory we have the following
         | package.js
         | src 
         | assets
    Dockerfile
    
    

    Then I copied files in his way

    COPY app ./
    

提交回复
热议问题