How to share a folder from my WSL2 with the macos container? #506

Open
opened 2025-12-29 01:20:30 +01:00 by adam · 2 comments
Owner

Originally created by @Ewerton on GitHub (Jun 19, 2023).

I successfully created a container, reinstalled the Monterey OS and I am happy for now. Every major change I make in the container (like install a new App) I do docker container commit and I am able to restart it from where I left it.

I want to use this container to develop some small Apps using the Visual Studio for Mac, so, I want to create files inside the container but save these files in my host OS which is WSL2 running in my Windows 11. Is that possible?

I already tried what is described here https://github.com/sickcodes/Docker-OSX#share-directories-sharing-files-shared-folder-mount-folder but the sshfs command fails with the following error read: Connection reset by peer

Originally created by @Ewerton on GitHub (Jun 19, 2023). I successfully created a container, reinstalled the Monterey OS and I am happy for now. Every major change I make in the container (like install a new App) I do `docker container commit` and I am able to restart it from where I left it. I want to use this container to develop some small Apps using the Visual Studio for Mac, so, I want to create files inside the container but save these files in my host OS which is WSL2 running in my Windows 11. Is that possible? I already tried what is described here https://github.com/sickcodes/Docker-OSX#share-directories-sharing-files-shared-folder-mount-folder but the sshfs command fails with the following error `read: Connection reset by peer`
Author
Owner

@augustresende commented on GitHub (Aug 30, 2023):

Same here

@augustresende commented on GitHub (Aug 30, 2023): Same here
Author
Owner

@augustresende commented on GitHub (Aug 30, 2023):

I fixed by enabling Remote login in mac os system settings.

@augustresende commented on GitHub (Aug 30, 2023): I fixed by enabling Remote login in mac os system settings.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#506