I'm learning about containers docker, I'm still in the basics.. When I try to use the command docker cp
,to copy an file from the container to the local host direcotory the output returns an error.
I type:
docker cp bridge:/home/arq3.txt .
the output:
Error response from daemon: lstat /var/lib/docker/aufs/mnt/231afc03ee896d66b09ed3c4d1d057a73eeed4f6182c3108dcbfb5b3337c8fa5/home/arq3.txt: no such file or directory
Second the documentation of docker the syntax is right, so what I doing wrong? And what is this directory var/lib/docker/aufs/mnt/231afc03ee896d66b09ed3c4d1d057a73eeed4f6182c3108dcbfb5b3337c8fa5/
?
The error tells you that there is no file /home/arq3.txt
in your Docker container. Check the file path. The file is probably not in /home
but in /home/<user>
or in /root
.
As for /var/lib/docker/aufs/mnt/231afc03ee896d66b09ed3c4d1d057a73eeed4f6182c3108dcbfb5b3337c8fa5
, it is the mount point of your Docker file hierarchy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With