Check disk usage
When encountering a storage full, the first step is to check your container’s disk usage. You can use thedf -h
command to display a summary of disk usage.
Key areas to check
Container Disk Usage: The primary storage area for your container is mounted on theoverlay
filesystem. This indicates the container’s root directory.
du -sh .
to check the space usage of the current directory. The default volume of container volume or network volume is mounted at /workspace
, You can check the usage with the following example::
/workspace
, you can run the following command:
Removing files and directories
Once you’ve identified large files or directories that are no longer needed, you can remove them to free up space.This will permanently delete the file, folder. Use with caution.
JupyterLab hidden trash bin
If you deleted files through JupyterLab’s UI but storage isn’t freed, they may be in a hidden trash directory.Quick check and fix
Check if trash directories exist:Check for trash directories
Clear trash directories