清空docker container logs 找出docker container日志文件所在的路径 docker inspect --format='{{.LogPath}}' <container_name_or_id> 删除或者清空日志文件内容 echo |sudo tee $(docker inspect --format='{{.LogPath}}' <container_name_or_id>)