Search code examples
dockergoogle-cloud-platformgoogle-cloud-rungoogle-cloud-shell

How to solve "no space left" on device error on GCP


What could be causing the 'failed to register layer: write /usr/local/lib/python3.10/site-packages/nvidia/cusparse/lib/libcusparse.so.12: no space left on device' error when trying to pull a 5.76GB Docker image into GCP Cloud Shell?

The error occurs after the image download is complete and is being extracted.


Solution

  • Google Cloud Shell only provides 5 GB of working space. The error message means you have run out of free space to store the object. Cloud Shell does not allow you to increase the disk storage space.

    If you need more than 5 GB, I recommend launching a Compute Engine instance for your work.

    Cloud Shell provisions 5 GB of free persistent disk storage mounted as your $HOME directory on the virtual machine instance.

    How Cloud Shell works