winboat icon indicating copy to clipboard operation
winboat copied to clipboard

[Feature] Add a shared folder that is not only limited to /home/$USER

Open bearofbusiness opened this issue 4 months ago • 3 comments

Feature Description

I think it would be a good idea to add an option to only allow the windows container to only access a smaller part of the host filesystem.

Use-Case

This would be useful for people that do not want windows to have access to there home directory or any sensitive data there.

Proposed Implementation

I would change the current option of Shared home folder to have a browse function so you can set what folder you want the container to access.

Notice

  • [x] I have checked the issue tracker and verified that this Feature Request has not been proposed before.
  • [ ] I would like to help out implementing this feature

bearofbusiness avatar Sep 25 '25 01:09 bearofbusiness

I would like this feature to be added. Exposing the entire home folder to windows is pretty risky, since there is possibility that if windows gets infected, linux home folder files becomes corrupted too

I think it would be more safe to expose just one folder to windows, so it acts like a mailbox between your linux system and windows container. There are some apps in windows in which we may have to bring a file from linux to windows and import it to the app to work with it. Having a seperate shared folder between linux and windows to make your work easy with apps without exposing your entire linux home would be amazing

Zanuaimi avatar Oct 09 '25 05:10 Zanuaimi

This may be addressed fully in a future feature. For now you can disable sharing your home directory with the guest VM and instead use SMB to share individual directories with the guest.

waffles-dev avatar Oct 16 '25 12:10 waffles-dev

It seems like this would be as simple as adding the --volume (with the path of the folder that should be shared from your host system) in the docker launch command (see https://docs.docker.com/get-started/docker-concepts/running-containers/sharing-local-files/ for more information)

Is there any reason this wouldn't work?

SammyPants37 avatar Oct 22 '25 01:10 SammyPants37

smb is a good idea I didn't think about that. I currently just use a usb drive and pass it through to the container and back.

bearofbusiness avatar Dec 06 '25 04:12 bearofbusiness

smb is a good idea I didn't think about that. I currently just use a usb drive and pass it through to the container and back.

I like it because you don't have to re-compose, and you can have per-dir access controls (no root or w.e middleman). I do find that to access the share on my host I have to use its LAN IP, YMMV.

waffles-dev avatar Dec 14 '25 13:12 waffles-dev

Windows comes with an SSH client so I just use that via cmd. There's also a setting to enable an SSH server. Setting up SMB is too much drudge work for me, but sometimes it's more worth it. For simple file transfer SSH is perfect tho.

el-damiano avatar Dec 14 '25 15:12 el-damiano