docker-impl-storage
Installation
SKILL.md
docker-impl-storage
Quick Reference
Storage Types
| Type | Persistence | Managed By | Location | Use Case |
|---|---|---|---|---|
| Named volume | Yes | Docker (/var/lib/docker/volumes/) |
Docker-managed | Databases, shared data, backups |
| Anonymous volume | Until container removed | Docker | Docker-managed | Temporary per-container data |
| Bind mount | Yes | Host filesystem | Any host path | Development, config injection |
| tmpfs | No (RAM only) | Kernel | Memory | Secrets, temp files, performance |
Critical Warnings
NEVER use anonymous volumes for database data -- data is lost when the container is removed with --rm. ALWAYS use named volumes for any data that must survive container recreation.
NEVER use -v syntax with volume drivers or driver options -- -v does not support them. ALWAYS use --mount when configuring volume drivers, NFS, or CIFS mounts.
Related skills