Files
nexus/wiki/sources/ru-he-shan-chu-jiu-de-fei-qi-de-docker-container-volume.md
2026-04-14 16:02:50 +08:00

36 lines
1.1 KiB
Markdown
Raw 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.
---
title: "如何删除旧的废弃的docker container + volume"
type: source
tags: [docker, container, volume]
date: 2026-04-14
source_file: raw/Technical/Home Office/🟠如何删除旧的废弃的docker container +volume.md
---
## Summary
- 核心主题清理旧的Docker容器、卷和网络
- 问题域Docker资源清理
- 方法/机制使用docker命令停止、删除容器和卷
- 结论/价值解决WARN提示网络/卷已存在但不属于当前项目)
## Key Claims
- docker rm -f强制删除运行中的容器
- docker volume rm删除悬空卷
- docker network rm删除孤立网络
- docker compose down可一次性清理整个compose项目
## Key Concepts
- [[Docker容器清理]]:停止并删除旧容器
- [[Docker卷管理]]清理未使用的Docker数据卷
- [[Docker网络清理]]:删除孤立网络
## Key Entities
- [[Docker]]:容器化平台
- [[Portainer]]Docker可视化管理系统
## Connections
- [[Docker]] ← 管理 ← [[Docker容器清理]]
- [[Docker]] ← 管理 ← [[Docker卷管理]]
- [[Docker]] ← 管理 ← [[Docker网络清理]]
## Contradictions