swap source and destination volume mapping

source volume -> /from
destination volume -> /to
This commit is contained in:
Zsolt Györffi 2016-05-09 18:28:21 +02:00
parent 82f299a524
commit 300d65a2c2

View File

@ -45,6 +45,6 @@ echo "Copying data from source volume \"$1\" to destination volume \"$2\"..."
docker run --rm \
-i \
-t \
-v $2:/from \
-v $1:/to \
-v $1:/from \
-v $2:/to \
alpine ash -c "cd /to ; cp -a /from/* ."