DSMT (Docker Storage Migration Tool) is a CLI utility for exporting and importing Docker volumes and bind mounts as compressed tarballs. Current stable version is 0.3.1 with monthly releases on npm. Key differentiator: auto-detects volume vs bind mount type, supports multiple package managers (npm, yarn, pnpm, bun), and works with both global and direct execution via npx/bunx. Built for backup, restore, and migration of Docker storage across systems. Written in TypeScript with ESM support.
npm install dsmtNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows command-line and programmatic usage for exporting and importing Docker volumes with DSMT.
Use import { dsmt } from 'dsmt' instead of require('dsmt'). For dynamic imports, use import() expression.Add explicit flags: dsmt export -v myvolume ./backup or dsmt export -b /path /backup.
Ensure Docker is installed and running. Run 'docker info' to verify.
Update commands: for export, provide source then destination; for import, provide tarball then target.
Change to import { dsmt } from 'dsmt' or use dynamic import().Run 'npm install -g dsmt' to install all dependencies.
Ensure the path exists and is accessible, or use -v for volume.