Skip to content

The docker-export and docker-commit commands do not save the container volumes. Use this script to save and load the container volumes.

License

Notifications You must be signed in to change notification settings

SiNa88/docker-volumes.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

docker-volumes.sh

The docker-export and docker-commit/docker-save commands do not save the container volumes. Use this script to save and load the container volumes.

Notes

  • This script could have been written in Python or Go, but the tarfile module and the tar package do not detect sparse files.
  • We use the Ubuntu 18.04 Docker image with tar v1.29 that uses SEEK_DATA/SEEK_HOLE to detect sparse files.
  • Volumes imported from other volumes via --volumes-from are ignored.

About

The docker-export and docker-commit commands do not save the container volumes. Use this script to save and load the container volumes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%