36 lines
1.1 KiB
Markdown
36 lines
1.1 KiB
Markdown
---
|
||
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
|