Hi, I just saw it earlier- and it helped me a lot!
Thank you very much!!!
I have another question - if possible - I could see that there is a container in Volume by the Docker Desktop, but I do not see if it copied what I wanted into it:
And when I run ls- I can not access the Volumes folder- so I can not see if it copied to the Volume website what I wanted:
Here I created a container with the volume (website)
OK
cdrachellinux83@DESKTOP-RTS83TE:~$ docker run -d \
--name devtest \
--mount source=website,target=/app \
nginx:latest> --name devtest \
> --mount source=website,target=/app \
> nginx:latest
Unable to find image 'nginx:latest' locally
latest: Pulling from library/nginx
5eb5b503b376: Already exists
1ae07ab881bd: Pull complete
78091884b7be: Pull complete
091c283c6a66: Pull complete
55de5851019b: Pull complete
b559bad762be: Pull complete
Digest: sha256:2834dc507516af02784808c5f48b7cbe38b8ed5d0f4837f16e78d00deb7e7767
Status: Downloaded newer image for nginx:latest
fdd3510e728897c4888f2b7a1761712cd3b8cd6092f4c5aa414eb88d2e56a101
Here I ran docker container inspect
cdrachellinux83@DESKTOP-RTS83TE:~$ docker container inspect devtest
[
...
"Mounts": [
{
"Type": "volume",
"Name": "website",
"Source": "/var/lib/docker/volumes/website/_data",
"Destination": "/app",
"Driver": "local",
"Mode": "z",
"RW": true,
"Propagation": ""
}
],
...
]
Here I copied by Destination
cdrachellinux83@DESKTOP-RTS83TE:~$ sudo cp ./someapp/*|- devtest:/app
Here I tried to see the data:
cdrachellinux83@DESKTOP-RTS83TE:~$ sudo ls -l /var/lib/docker/volumes/website/**_data**
ls: cannot access '/var/lib/docker/volumes/website/_data': No such file or directory
cdrachellinux83@DESKTOP-RTS83TE:~$ sudo ls -l /var/lib/docker/volumes/**website**
ls: cannot access '/var/lib/docker/volumes/website': No such file or directory
cdrachellinux83@DESKTOP-RTS83TE:~$ sudo ls -l /var/lib/docker/`volumes`
total 24
brw------- 1 root root 8, 16 Feb 15 04:10 backingFsBlockDev
-rw------- 1 root root 32768 Feb 15 04:10 metadata.db
What I see- that it fails to access the Volumes themselves (inside the Volumes folder) - maybe you know why?
Thank you so much for all the help !!
Regards,
Rachel