Vagrant
De Linuxmemo.
(Différences entre les versions)
(Page créée avec « Catégorie:Linux sysadmin ==Install== https://www.vagrantup.com/downloads.html ==Nouveau projet (vide)== mkdir vagrant_getting_started cd vagrant_getting_started vagra... ») |
(→Les "Boxes") |
||
Ligne 18 : | Ligne 18 : | ||
*deinstaller une box | *deinstaller une box | ||
vagrant box remove | vagrant box remove | ||
+ | ==synced folders (/vagrant)== | ||
+ | By default, Vagrant shares your project directory (remember, that is the one with the Vagrantfile) to the /vagrant directory in your guest machine. | ||
+ | vagrant up | ||
+ | vagrant ssh | ||
+ | vagrant@precise64:~$ ls /vagrant | ||
+ | Vagrantfile |
Version du 19 avril 2016 à 20:46
Sommaire |
Install
https://www.vagrantup.com/downloads.html
Nouveau projet (vide)
mkdir vagrant_getting_started cd vagrant_getting_started vagrant init vim Vagrantfile
Les "Boxes"
- ajouter une box
vagrant box add hashicorp/precise64 (vagrant box add user/namebox)
- démarrer la box
vagrant up vagrant ssh
- détruire l'instance d'une box
vagrant destroy
- deinstaller une box
vagrant box remove
synced folders (/vagrant)
By default, Vagrant shares your project directory (remember, that is the one with the Vagrantfile) to the /vagrant directory in your guest machine.
vagrant up vagrant ssh vagrant@precise64:~$ ls /vagrant Vagrantfile