Files
nexus/wiki/concepts/Docker-Volume.md
2026-04-17 08:38:12 +08:00

30 lines
574 B
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: concept
tags: [docker, volume, storage, persistence]
last_updated: 2026-04-17
---
## Definition
Docker Volume数据卷是 Docker 容器持久化数据的机制,允许容器在重启后保留数据。
## Use Cases
- 数据库数据持久化
- 应用配置存储
- 日志存储
## Commands
```bash
# 查看卷
docker volume ls
# 删除卷
docker volume rm <volume_name>
# 删除未使用的卷
docker volume prune
```
## Connections
- [[Docker Volume]] ← used_by ← [[Portainer]]
- [[Docker]] ← manages ← [[Docker Volume]]