- k8s节点删除无用镜像
for ims in `docker images |grep saicchain |awk '{print $3}'`; do docker rmi $ims; sleep 2; done
- 删除硬盘里过大的日志文件
find /app -type f -size +1000M -name '*.log' 2>/dev/null 回车显示: /app/docker/containers/6875342f4dce3a2ae32c4c7d5963cec72c771f6ada6dac72cc8b421a225f5fe4/6875342f4dce3a2ae32c4c7d5963cec72c771f6ada6dac72cc8b421a225f5fe4-json.log /app/docker/containers/c662c868a72cb924e71493dca030a816adf48bb89dd40ce481f63fe86256ed93/c662c868a72cb924e71493dca030a816adf48bb89dd40ce481f63fe86256ed93-json.log /app/docker/containers/b1b12a1a7444b4ff555f8aead1b2ca9d0ee93ef7e8529532e251447de4f3cfc6/b1b12a1a7444b4ff555f8aead1b2ca9d0ee93ef7e8529532e251447de4f3cfc6-json.log 再执行 echo > /app/docker/containers/6875342f4dce3a2ae32c4c7d5963cec72c771f6ada6dac72cc8b421a225f5fe4/6875342f4dce3a2ae32c4c7d5963cec72c771f6ada6dac72cc8b421a225f5fe4-json.log
标签:log,运维,app,6875342f4dce3a2ae32c4c7d5963cec72c771f6ada6dac72cc8b421a225f5fe4,json From: https://www.cnblogs.com/stupidjackey/p/17527855.html