Help Center/ ModelArts/ Troubleshooting/ DevEnviron/ Custom Image Faults/ What Do I Do If Error "The container size (xG) is greater than the threshold (25G)" Is Reported When I Save an Image?
Updated on 2026-04-09 GMT+08:00

What Do I Do If Error "The container size (xG) is greater than the threshold (25G)" Is Reported When I Save an Image?

Symptom

The error The container size (30G) is greater than the threshold (25G) is reported when an image is saved, and the image fails to be created.

Possible Causes

To save an image, you need to run the docker commit command on the agent of a resource cluster node. Administrative data will be uploaded and updated automatically. Each docker commit adds layers and overhead. Frequent saving can lead to storage shortages due to the cumulative size of these layers. If the image is too large, various problems may occur. You can rebuild the original image environment and save the image to solve the problem.

Solution

Rebuild the original image environment. You can use a base image with minimized installation and run the dependencies. Clear the installation cache and save the image.