docker 容器 日志占用空间过大问题处理


# 2017 10 09 优化docker 运行产生的日志
path=/var/lib/docker/containers/

cd $path
for file in $(ls)
do
	#[ -d $file ] && echo $file 
	if [ -d $file ];then
		echo $file
		cat /dev/null > $file/$file-json.log
	  else
		echo 0	
	fi
done


相关文章:

  • 2022-12-23
  • 2021-09-06
  • 2021-07-01
  • 2022-03-03
  • 2021-06-30
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
  • 2021-11-22
  • 2022-12-23
相关资源
相似解决方案