Skip to content

morozig/copy-volume

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

copy-volume

Tiny docker image to copy contents of one docker volume into another without super user rights

Usage

$ docker run -v volume1:/from -v volume2:/to morozig/copy-volume

Explanation

We needed to run end2end tests inside docker containers during TeamCity build. We wanted to start with same database each build and mounted it as docker volume, but teamcity user didn't have enough access rights, so we decided to use docker for that task:

$ docker run -v ~/db-data-bak:/from -v ~/db-data:/to morozig/copy-volume
$ docker run --rm -v ~/db-data:/var/lib/postgresql/data postgres
$ run tests...

License

MIT

About

Copies contents of one docker volume to another

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published