Commandes Linux : vagrant box prune

VAGRANT BOX PRUNE

Commande : vagrant box prune
Usage: vagrant box prune [options]

Options:

    -p, --provider PROVIDER          The specific provider type for the boxes to destroy.
    -n, --dry-run                    Only print the boxes that would be removed.
        --name NAME                  The specific box name to check for outdated versions.
    -f, --force                      Destroy without confirmation even when box is in use.
    -h, --help                       Print this help

 

Supprimer toutes les boxes dont une version plus récente existe en local

vagrant box prune [options]

ex :

$ vagrant box prune
The following boxes will be kept...
AlbanMontaigu/boot2docker   (virtualbox, 18.06.0-ce)
debian/stretch64            (virtualbox, 9.5.0)
emessiha/ubuntu64-java      (virtualbox, 1.0.0)
hashicorp/precise64         (virtualbox, 1.1.0)
primalskill/ubuntu-trusty64 (virtualbox, 1.0.0)

Checking for older boxes...
Removing box 'debian/stretch64' (v9.1.0) with provider 'virtualbox'...
Removing box 'debian/stretch64' (v9.2.0) with provider 'virtualbox'....

 

Mode simulation

vagrant box prune [options] --dry-run

ex :

$ vagrant box prune --dry-run
The following boxes will be kept...
AlbanMontaigu/boot2docker   (virtualbox, 18.06.0-ce)
debian/stretch64            (virtualbox, 9.5.0)
emessiha/ubuntu64-java      (virtualbox, 1.0.0)
hashicorp/precise64         (virtualbox, 1.1.0)
primalskill/ubuntu-trusty64 (virtualbox, 1.0.0)

Checking for older boxes...
Would remove debian/stretch64 virtualbox 9.1.0
Would remove debian/stretch64 virtualbox 9.2.0

 

Fermer le menu