voume
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
$ docker volume ls | grep ssd-fw-SC- | head -1
local 5b2e5ca2d4563199cc3a982e74c3f4613a7a1b4a1d91bb948561d5a6a1cf4cfa
$ docker inspect 5b2e5ca2d4563199cc3a982e74c3f4613a7a1b4a1d91bb948561d5a6a1cf4cfa | jq
$ docker ps -a --format '{{.ID}}'
77745046363d
$ docker inspect $(docker ps -a --format '{{.ID}}' | head -1) |
# $1: exists volume need to be visit
# $2: new volume for new container
$ docker volume create --name $2
$ docker run --rm \
-i \
-t \
-v $1:/from \
-v $2:/to \
alpine ash -c "cd /from ; cp -av . /to"