Docker-OSX icon indicating copy to clipboard operation
Docker-OSX copied to clipboard

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

Open Ewerton opened this issue 1 year ago • 2 comments

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

Ewerton avatar Jun 19 '23 00:06 Ewerton

Same here

augustresende avatar Aug 30 '23 13:08 augustresende

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

augustresende avatar Aug 30 '23 13:08 augustresende