定时清理 Docker 容器的日志

vim /etc/crontab
# 其中 gitlab 为容器名称
 0  0   * * *   root    echo '' > $(docker inspect --format='{{.LogPath}}' gitlab)