LoginSignup
1
2

More than 5 years have passed since last update.

Vagrant 基本1 前準備とBOXについて

Last updated at Posted at 2018-04-19

概要

Vagrant を初めて使うこととなったので
何回かに分けて手順や備忘録や気になったことを記載していきます

Vagrant Box の取得方法

$ vagrant box add precise32 http://files.vagrantup.com/precise32.box
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'precise32' (v0) for provider:
box: Downloading: http://files.vagrantup.com/precise32.box
box: Download redirected to host: hashicorp-files.hashicorp.com
==> box: Successfully added box 'precise32' (v0) for 'virtualbox'!

  • precise は Ubuntu のOSのバージョン名
  • 32は32ビットの意味を表す

Vagrant Box の一覧を見る

$ vagrant box list
precise32 (virtualbox, 0)

他のVagrant Box を取得する

Vagrant Box のリンク一覧

Vagrant box 削除

$ vargrint remove

Vagrant box ヘルプ

$ vagrant box -help
Usage: vagrant box []

Available subcommands:
add
list
outdated
prune
remove
repackage
update

For help on any individual subcommand run vagrant box <subcommand> -h

boxはホームフォルダの ~./vagrant.d/boxes の下に格納される

- ここにキャッシュされていく

1
2
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
1
2