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了,然后执行上面的命令就搞定了

posted @ 2017-12-26 10:36  jackluo  阅读(2794)  评论(0编辑  收藏  举报