Update a Vagrant Box?

2019-03-11 00:49发布

问题:

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?

回答1:

From the Vagrant docs:

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.