Skip to content

Instantly share code, notes, and snippets.

@glombard
Created August 2, 2014 18:51
Show Gist options
  • Save glombard/5057e7630dfb3d7afeb7 to your computer and use it in GitHub Desktop.
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)
# 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