cardinalby / chrome-remote-desktop-image

Docker image with Chrome Remote Desktop
71 stars 24 forks source link

mount folder from host #2

Closed Baxalax closed 11 months ago

Baxalax commented 1 year ago

Hello, thx for this docker image. Am trying to download a file via firefox, which works, but how do I get the file from docker storage to my real storage of NAS? Lets say I want to access the file via Synology File Station. I was not able to mount folder in image settings - perhaps I dont know how exactly :D

thx for your answer

cardinalby commented 1 year ago

I haven't tried, but I suppose you should be able to mount a volume on Volume tab in Advanced Settings of Create Container dialog

Baxalax commented 1 year ago

I have tried that, but maybe I do enter wrong paths for docker mount folder, it doesn't work. What would be the right path name for download folder inside of Ubuntu?

Dne po 3. 4. 2023 19:25 uživatel Cardinal @.***> napsal:

I haven't try, but I suppose you should be able to mount a volume on Volume tab in Advanced Settings of Create Container dialog

— Reply to this email directly, view it on GitHub https://github.com/cardinalby/chrome-remote-desktop-image/issues/2#issuecomment-1494706070, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6UEFKYYVX4DZZIRBXNWYALW7MB2LANCNFSM6AAAAAAWRSOBWA . You are receiving this because you authored the thread.Message ID: @.***>

cardinalby commented 1 year ago

Try using /home/myuser/Downloads path inside the container, it's used by Firefox for downloads It can be tricky because of permissions, user inside the container has uid=1000, gid=1000 so you need to mount a directory with the same owner from your Synology.

To do it, you need to SSH to the Synology, execute smth like

sudo chown 1000 path/to/dir

Another way would be setting uid/gid on container run, but it's not implemented in the image (PRs are welcome)