mirror of
https://github.com/gdiepen/docker-convenience-scripts.git
synced 2025-04-28 10:13:41 +01:00
Merge 408d5a1a2d
into fd6535b616
This commit is contained in:
commit
d6f24044cd
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ fi
|
||||||
|
|
||||||
|
|
||||||
echo "Creating destination volume \"$2\"..."
|
echo "Creating destination volume \"$2\"..."
|
||||||
docker volume create --name $2
|
docker volume create --name $2 $(docker volume inspect $1 --format '{{range $k,$v:=.Labels}}--label {{$k}}={{$v}} {{end}}')
|
||||||
echo "Copying data from source volume \"$1\" to destination volume \"$2\"..."
|
echo "Copying data from source volume \"$1\" to destination volume \"$2\"..."
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
-i \
|
-i \
|
||||||
|
|
Loading…
Add table
Reference in a new issue