保存和共享对 Vagrant box 所做的更改 [英] Saving and sharing changes made to Vagrant box

查看:31
本文介绍了保存和共享对 Vagrant box 所做的更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从 www.vagrantbox.es 设置了一个 Ubuntu 13.04 盒子.发布我对盒子进行了更改 - 安装了 ruby​​、rails、git、mysql、ngnix 等.我如何与其他人共享修改后的盒子?

I setup an Ubuntu 13.04 box from www.vagrantbox.es. Post that I made changes to the box - installed ruby, rails, git, mysql, ngnix, etc. How do I share the modified box with someone else?

推荐答案

进行更改后,使用 Vagrantfile 所在目录中的 vagrant package.它将关闭机器并开始将其保存到文件中.

After making your changes, use vagrant package in the directory with the Vagrantfile. It will shut the machine down and start saving it to a file.

您最终会在该目录中获得一个可以共享的 boxfile.

You'll end up with a boxfile in that directory that you can share.

这篇关于保存和共享对 Vagrant box 所做的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆