更新一个流浪盒子? [英] Update a Vagrant Box?

查看:27
本文介绍了更新一个流浪盒子?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经更新了一个盒子 vagrant box update 现在当我运行 vagrant up 时它会启动到旧盒子中.如何更新我的盒子以使用较新版本?

I have updated a box vagrant box update and now when I run vagrant up it boots into the old box. How can I update my box to use the newer version?

推荐答案

来自 Vagrant 文档:

最后,您可以使用 vagrant box update 更新 box.这会下载并安装新的盒子.这不会神奇地更新运行 Vagrant 环境.如果 Vagrant 环境已经运行,您必须摧毁重新创建它以获得新的框中的更新.update 命令只下载这些更新本地.

Finally, you can update boxes with vagrant box update. This will download and install the new box. This will not magically update running Vagrant environments. If a Vagrant environment is already running, you'll have to destroy and recreate it to acquire the new updates in the box. The update command just downloads these updates locally.

这篇关于更新一个流浪盒子?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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