Search code examples
dockergitlabgitlab-cigitlab-ci-runner

How to fix gitlab docker no disk space left error?


I am building a docker image of an application using the GitLab ci pipeline and when the docker build command is running, I am getting this error:

Error processing tar file(exit status 1): write /usr/src/app/.git/objects/pack/tmp_pack_fgZvnM: no space left on device

And this error is occuring during the COPY .. command. I don't have any idea how to fixx it. If anyone knows please tell.

Thanks & Regards Piyush


Solution

  • Firstly try running docker image prune to clean up all dangling images on your machine.

    If the issue still persists then check this :

    Docker error : no space left on device