Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 483
Piyush Mittal Avatar asked Oct 21 '25 17:10

Piyush Mittal


1 Answers

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

like image 112
Ajit Agarwal Avatar answered Oct 23 '25 06:10

Ajit Agarwal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!