'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



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source