---
title: "docker文件清理"
url: "https://versun.me/2024-09-30"
markdown_url: "https://versun.me/2024-09-30.md"
format: "note"
published: "2024-09-29T21:16:59.000Z"
updated: "2026-01-05T05:29:52.000Z"
collections:
  - "Blog"
site: "Versun"
---

# docker文件清理

一键清理Docker无用的文件，释放磁盘空间：`docker system prune -a`  
删除所有未使用的本地卷: `docker volume prune -a`
