Docker ERROR: Error processing tar file(exit status 1): unexpected EOF

前端 未结 13 2165
离开以前
离开以前 2020-12-14 06:12

I needed space and executed: docker rmi $(docker images -f \"dangling=true\" -q)

Since then I can\'t with docker-compose: docker-compose build

13条回答
  •  离开以前
    2020-12-14 06:35

    In my case, the problem was a .dump file created by one of my project's scripts.

    docker-compose passes the context to the engine as a tar file, therefore, the build command was packing a tar (the .dump file) inside another tar file (the docker context) hence throwing an unexpected EOF on the context.

    Since I don't need the .dump file in the container, I added it to my .dockerignore file.

提交回复
热议问题