Last active
September 7, 2016 17:37
-
-
Save dawn360/cf48a360f00a41eda76a1dac11cb48b8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make the Box as Small as possible | |
sudo apt-get clean | |
sudo dd if=/dev/zero of=/EMPTY bs=1M | |
sudo rm -f /EMPTY | |
cat /dev/null > ~/.bash_history && history -c && exit | |
vagrant package --output mynew.box | |
# Add the Box into Your Vagrant Install | |
vagrant box add mynewbox mynew.box | |
vagrant init mynewbox | |
https://scotch.io/tutorials/how-to-create-a-vagrant-base-box-from-an-existing-one |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment