简体   繁体   English

从 Windows 主机上的虚拟机打开文件

[英]opening file from virtual machine on Windows host machine

I am using Windows 10 on my local machine with vagrant and docker installed for my virtual machine (VirtualBox).我在本地机器上使用 Windows 10,并为我的虚拟机 (VirtualBox) 安装了 vagrant 和 docker。 When I start docker/vagrant and my virtual machine is running and log in to the development machine, I get this:当我启动 docker/vagrant 并且我的虚拟机正在运行并登录到开发机器时,我得到以下信息:

root@dev:~# root@dev:~#

I have this directory我有这个目录

root@dev:~/boom/properties# root@dev:~/boom/properties#

My problem is how to access these folders from my windows host machine and edit the files that are in there.我的问题是如何从我的 Windows 主机访问这些文件夹并编辑其中的文件。

Look at setting up a sync folder between Windows and Linux.看看在 Windows 和 Linux 之间设置同步文件夹。

https://www.vagrantup.com/docs/synced-folders/smb.html https://www.vagrantup.com/docs/synced-folders/smb.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM