Files
nexus/wiki/sources/Docker容器与Volume清理.md

38 lines
1.2 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容器与Volume清理"
type: source
tags: [Docker, Portainer, Volume, 清理]
date: 2025-03-14
---
## Source File
- [[raw/Home Office/如何删除旧的废弃的docker container +volume.md]]
## Summary
- 核心主题清理旧的Docker容器、Volume和网络
- 问题域Portainer升级后旧容器/Volume残留导致警告
- 方法/机制docker stop/rm删除容器docker volume rm删除卷docker network rm删除网络
- 结论/价值干净的重装流程——stop+rm+volume rm+compose up
## Key Claims
- 查看容器docker ps -a | grep portainer
- 停止容器docker stop portainer
- 删除容器docker rm portainer或docker rm -f portainer
- 查看Volumedocker volume ls | grep portainer
- 删除Volumedocker volume rm portainer_data
- 删除Networkdocker network rm portainer_network
- 完整重装docker stop && docker rm && docker volume rm && docker network rm && docker compose up -d
## Key Concepts
- [[Docker清理]]:容器/Volume/Network的删除流程
## Key Entities
- [[Docker]]:容器化平台
- [[Portainer]]Docker管理UI
## Connections
- [[Docker容器与Volume清理]] ← documents ← [[Docker清理]]
## Contradictions
- 无冲突