Help Center/ ModelArts/ Troubleshooting/ DevEnviron/ Save an Image Failures/ What Do I Do If Error "container size %dG is greater than threshold %dG" Is Displayed When I Save an Image?
Updated on 2023-09-08 GMT+08:00

What Do I Do If Error "container size %dG is greater than threshold %dG" Is Displayed When I Save an Image?

Symptom

When an image is saved in a notebook instance, error "container size %dG is greater than threshold %dG" is displayed.

Possible Causes

The size of the notebook container exceeded the threshold.

Solution

Reduce the container size. The size of a notebook container consists of the image size and the size of the files newly installed in the container. To resolve this issue, use either of the following methods:

  • Reduce the size of the files newly installed in the container.
    1. Delete the files newly installed in a notebook instance. For example, if a large number of files have been downloaded to the notebook instance, delete them. This method applies only to directories other than the /home/ma-user/work and /cache directories. The persistent storage data in home/ma-user/work will not be stored in the created container image, and the temporary files stored in /cache do not consume the container storage space.
    2. If no file can be deleted or it is unknown which files can be deleted, use the same image to create a notebook instance. When using the new notebook instance, minimize software package installations or file downloads to reduce the container size.
  • Reduce the size of the image file.

    If you are not sure which packages or files do not need to be installed, use a small image to create a notebook instance and install the required software or files in it. Among all the public images, mindspore1.7.0-py3.7-ubuntu18.04 takes the minimum size.