LoginSignup
0
1

More than 5 years have passed since last update.

Scotch Boxを古いバージョンでvagrant up

Posted at

ScotchBoxのバージョンが3になってかなり便利で強力になりました。
でも、PHPが7だったりするので、まだ5の環境でやりたいな。。なんてときのために、2.5とかの古いバージョンで起ち上げたいとき。

Vagrantfile
Vagrant.configure("2") do |config|

    config.vm.box = "scotch/box"
    config.vm.box_version = "2.5"
....

でupすればよい。

追記

あと、2.5で使っていたのに、他のマシン立ち上げるときにboxを3にバージョン上げてしまったら、「vagrant upコマンド実行時にAuthentication failure.エラーが発生する」ようになってしまって、
vagrant upコマンド実行時にAuthentication failure.エラーが発生する
をやってみたのだけどうまくいかなくて困ったときも前のバージョンで起動して助かりました。

メモでした。

参考

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1