/usr/bin/docker exec -i $containerid findd /$container_path/ -name "*.log" -mtime -7 -exec rm -f {} \;
配合crontab定時任務刪除便可docker