Pcornel
Automation · Container Automation

Volumes

Cheat sheet · https://pcornel.dk/topic.php?topic=5789

Back to the Topic

Answer

Volumes persist container data outside the container's writable layer, as named volumes or bind mounts. Back them up separately, since removing a container does not remove its data.

Remember

  • Named volumes and bind mounts keep data outside containers.
  • Removing a container does not remove its volume.
  • Back up volumes separately.

First checks

  • docker volume ls — volumes
  • docker volume inspect <v> — mountpoint
  • Backup of named volumes — data protection

Verify in this order

container → volume → host storage

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5789

Confirmation

Confirm action

Continue?