I have created a docker volume "hello" and it contains some data .
How can I copy the data to host ?
First :
kerydeMacBook-Pro:~ hu$ docker volume create --name hello
hello
checking :
kerydeMacBook-Pro:~ hu$ docker volume ls
DRIVER VOLUME NAME
local hello
volume "hello" inspect
kerydeMacBook-Pro:~ hu$ docker volume inspect hello
[
{
"Name": "hello",
"Driver": "local",
"Mountpoint": "/mnt/sda1/var/lib/docker/volumes/hello/_data"
}
]
How can i copy the data on the volume "hello" to host?
I tried :
kerydeMacBook-Pro:~ hu$ docker cp hello:/mnt/sda1/var/lib/docker/volumes/hello/_data /Users/hu/Desktop/12
Error response from daemon: no such id: hello
It does not work as expected!
Who can help me ?
CID=$(docker run -d -v hello:/hello busybox true)
then :docker cp $CID: ./data /hello
,,it has en error:Error response from daemon: lstat /mnt/sda1/var/lib/docker/aufs/mnt/583e187 ..no such file or directory
..Can help me ? – Bistre