Skip to content

Cleaning Data ​

When the lzc-ai-agent service starts with LCMD, it automatically removes outdated Docker container images.

After you uninstall the corresponding AI应用 from LCMD, the AI Pod automatically cleans up its container images and model data.

Clean Up Old AI Application Container Images ​

The system intelligently scans the installation location of your services to identify and remove unused old versions of container images.

sh
/ssd/lzc-ai-agent/bin/client.arm64 -clean-lzc-images

Clean Up Container Abnormal States ​

The following do not affect normal system operation

sh
docker ps -a | grep '[Dead|Exited]' | awk '{print $2}' | xargs -i docker rm {}

Clean Up Container Images ​

Warning

This command does not affect the currently running system. Running the following command will clean up unused images. Docker will automatically skip any image that is being used by a container. However, note that locally built or pulled images not currently in use will also be deleted.

sh
docker images | awk '{print $2}' | xargs -i docker rmi {}

Docker Cleanup ​

Clean Docker cache and unused data

sh
docker system prune