From 09b32a0ee9879193c249dad6501987237fb9e137 Mon Sep 17 00:00:00 2001 From: Nicola Date: Thu, 12 Oct 2017 10:20:08 +0200 Subject: [PATCH] fix problem during volumes copy The copied volume (destination) was created but was empty at the end of the process. In order to fix it, I had to remove the second argument of the cp command. --- docker_clone_volume.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker_clone_volume.sh b/docker_clone_volume.sh index 8dcdb64..b80d3f1 100644 --- a/docker_clone_volume.sh +++ b/docker_clone_volume.sh @@ -47,4 +47,4 @@ docker run --rm \ -t \ -v $1:/from \ -v $2:/to \ - alpine ash -c "cd /to ; cp -a /from/* /from/.* ." + alpine ash -c "cd /to ; cp -a /from/* ."