Files
StudyDiary/20-我的收藏夹/21-浏览器收藏/群晖NAS/docker/Docker删除容器日志_杨林伟的博客-CSDN博客.md
CrazyJasonwell fb40c9b109 add all
2025-10-25 20:35:10 +08:00

17 lines
771 B
Markdown
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
raindrop_id: 670461911
created: 2025-08-30T11:45
updated: 2025-09-22T13:27
---
# Metadata
Source URL:: https://blog.csdn.net/qq_20042935/article/details/105225355
---
# Docker删除容器日志_杨林伟的博客-CSDN博客
文章浏览阅读3.1k次,点赞5次,收藏3次。平时我们经常查看容器的日志,命令如下:docker logs -f 容器名或者容器id随着时间的推移,日志文件越来越大,那么我们该如何清理日志文件呢?下面来讲解清理的步骤:1.进入docker容器目录: cd /var/lib/docker/containers/2.查看容器的id,获取容器id,容器id就是容器目录名字docker ps -a3.进入容器,删除以log结尾的文..._/www/server/docker/containers中的日志文件能删吗?
## Highlights