运行中产生很多日志,可用如下方法立即删除

1
sudo truncate -s 0 $(sudo docker inspect --format='{{.LogPath}}' 容器id)