Created
August 2, 2014 18:51
-
-
Save glombard/5057e7630dfb3d7afeb7 to your computer and use it in GitHub Desktop.
Replace boot2docker.iso with version with VBox guest additions (by steeve and mattes)
This file contains 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
# see: https://github.com/boot2docker/boot2docker/pull/284 | |
URL=$(curl -s https://medium.com/boot2docker-lightweight-linux-for-docker/boot2docker-together-with-virtualbox-guest-additions-da1e3ab2465c | grep -io '"http://[^"]*iso"' | sed -E 's/"(.*)"/\1/' | head -1) | |
if [ -f ~/.boot2docker/boot2docker.iso ] && [ ! -f ~/.boot2docker/boot2docker-original.iso ] | |
then | |
echo Backup existing file to ~/.boot2docker/boot2docker-original.iso ... | |
mv ~/.boot2docker/boot2docker.iso ~/.boot2docker/boot2docker-original.iso | |
fi | |
boot2docker stop | |
curl -o ~/.boot2docker/boot2docker.iso $URL | |
VBoxManage sharedfolder add boot2docker-vm -name home -hostpath /Users | |
boot2docker up | |
boot2docker ssh "ls /Users" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment