mirror of
https://github.com/gdiepen/docker-convenience-scripts.git
synced 2025-03-10 03:30:23 +00:00
change cp with tar
This commit is contained in:
parent
ba21581030
commit
1e9a58a799
1 changed files with 3 additions and 3 deletions
2
docker_clone_volume.sh
Normal file → Executable file
2
docker_clone_volume.sh
Normal file → Executable file
|
@ -47,4 +47,4 @@ docker run --rm \
|
||||||
-t \
|
-t \
|
||||||
-v $1:/from \
|
-v $1:/from \
|
||||||
-v $2:/to \
|
-v $2:/to \
|
||||||
alpine ash -c "cd /from ; cp -av . /to"
|
alpine ash -c "cd /from && tar cf - . | (cd /to && tar xvf -)"
|
||||||
|
|
Loading…
Add table
Reference in a new issue