Sziasztok,
mi a korrekt modja egy vagrant box ("running up" modban) "uninstall"-janak?
$ vagrant --version
Vagrant 1.4.3
probaltam a kovetkezot:
$cd /data/tesproject1
$VAGRANT_VAGRANTFILE=Vagrantfile.boxx1 vagrant destroy
Are you sure you want to destroy the 'boxx1-trusty64' VM? [y/N] y
[boxx1-trusty64] Forcing shutdown of VM...
[boxx1-trusty64] Destroying VM and associated drives...
$VAGRANT_VAGRANTFILE=Vagrantfile.boxx1 vagrant box list
box1-trusty64 (virtualbox)
box2-trusty64 (virtualbox)
box3-trusty64 (virtualbox)
boxx1-trusty64 (virtualbox) <-------#ezt kene "eltuntetni"
$VAGRANT_VAGRANTFILE=Vagrantfile.boxx1 vagrant box remove boxx1-trusty64
Removing box 'boxx1-trusty64' with provider 'virtualbox'...
$vagrant box list
box1-trusty64 (virtualbox)
box2-trusty64 (virtualbox)
box3-trusty64 (virtualbox)
Sajnos, megmaradt a kovetkezo:
$cd /data/testproject1/.vagrant/machines
$ls -la
total 12
drwx------ 3 root root 4096 Jun 3 05:51 .
drwx------ 3 root root 4096 Jun 3 05:51 ..
drwx------ 3 root root 4096 Jun 3 05:51 boxx1-trusty64 #<---nem tunt el
$cd /root/.vagrant.d/boxes
$ls -la
total 32
drwx------ 8 root root 4096 Jun 3 05:49 .
drwx------ 7 root root 4096 Jun 1 07:00 ..
drwx------ 3 root root 4096 Jun 1 07:00 box1-trusty64
drwx------ 2 root root 4096 Jun 1 10:05 box2-trusty32
drwx------ 3 root root 4096 Jun 1 12:01 box2-trusty64
drwx------ 3 root root 4096 Jun 2 10:06 box3-trusty64
drwx------ 2 root root 4096 Jun 2 10:04 box3-tursty64
drwx------ 2 root root 4096 Jun 3 06:25 boxx1-trusty64 #<----nem tunt el
Es a status: "not created":
$cd /data/testproject/
$VAGRANT_VAGRANTFILE=Vagrantfile.boxx1 vagrant status
Current machine states:
boxx1-trusty64 not created (virtualbox)
The environment has not yet been created. Run `vagrant up` to
create the environment. If a machine is not created, only the
default provider will be shown. So if a provider is not listed,
then the machine is not created for that environment.
$vboxmanage list runningvms
Itt a /data/vagrantprojects konyvtarban letrehozott box-ok talalhatok; a testproject1_boxx1-trusty64_1464933080271_10709 eltunt:
$vboxmanage list vms
"vagrantprojects_box1-trusty64_1464764497059_1307" {b5d9f5e9-218a-4112-b5ce-243a1cf3e062}
"vagrantprojects_box2-trusty64_1464782564687_15335" {1138a332-803d-4d72-9675-c1b226da1ed1}
"vagrantprojects_box3-trusty64_1464862042998_51981" {d512cdbe-7dc2-4d67-b6aa-fd5fa8426dc6}
Ardi
- 900 megtekintés