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

前端 未结 13 2199
离开以前
离开以前 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

    For me it was a permission error. I walked against the same exact issue as PR, ERROR: Error processing tar file(exit status 1): unexpected EOF My solution is dirty but worked for me

    chown -R 777 /foo/bar/project

    You almost always want to avoid to set permissions on 777, 655 is more reasonable.

    0 = ---
    1 = --x
    2 = -w-
    3 = -wx
    4 = r-
    5 = r-x
    6 = rw-
    7 = rwx
    

    A more detailed explanation can be found here: https://www.pluralsight.com/blog/it-ops/linux-file-permissions

提交回复
热议问题