packaging synced folder with vagrant base box

半城伤御伤魂 提交于 2019-12-21 21:18:48

问题


when packaging a vagrant box, the package.box file does not contain a synced folder /src that has a bunch of repos I downloaded to it during provisioning. What would be the best way to include the synced folder so I can distribute the vm?


回答1:


I guess you are using shared folders between your host and your virtual machine. Vagrant package will never package your shared folders because they are not part of the virtual machine, they belongs to your host.

The best way to package these files, is to store them in another folder in the virtual machine like in your /home or /opt for example.



来源:https://stackoverflow.com/questions/25045539/packaging-synced-folder-with-vagrant-base-box

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!