docker /var/lib/docker/aufs/mnt 目录满了,全是垃圾数据

#!/bin/sh

echo "==================== start clean docker containers logs =========================="

logs=$(find /var/lib/docker/containers/ -name *-json.log)

for log in $logs
do
echo "clean logs : $log"
cat /dev/null > $log
done echo "==================== end clean docker containers logs =========================="

公司的服务是用的docker ,发现磁盘man了,然后执行上面的命令就搞定了

上一篇:MBR结构和DBR结构


下一篇:Azure Devops: COPY failed: stat /var/lib/docker/tmp/docker-builder268095359/xxxxxxx.csproj no such file or directory