mirror of
https://github.com/gdiepen/docker-convenience-scripts.git
synced 2025-01-18 10:08:55 +00:00
execute the command instead of just printing it
This commit is contained in:
parent
1e7dca1e8d
commit
82f299a524
@ -42,9 +42,9 @@ fi
|
|||||||
echo "Creating destination volume \"$2\"..."
|
echo "Creating destination volume \"$2\"..."
|
||||||
docker volume create --name $2
|
docker volume create --name $2
|
||||||
echo "Copying data from source volume \"$1\" to destination volume \"$2\"..."
|
echo "Copying data from source volume \"$1\" to destination volume \"$2\"..."
|
||||||
echo docker run --rm \
|
docker run --rm \
|
||||||
-i \
|
-i \
|
||||||
-t \
|
-t \
|
||||||
-v $2:/from \
|
-v $2:/from \
|
||||||
-v $1:/to \
|
-v $1:/to \
|
||||||
alpine ash -c "cd /to ; cp -a /from/* ."
|
alpine ash -c "cd /to ; cp -a /from/* ."
|
||||||
|
Loading…
Reference in New Issue
Block a user