Created
May 2, 2014 13:55
Part of .zshrc to init folder sharing for boot2docker
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
export DOCKER_HOST=tcp://localhost:4243 | |
boot2docker status | |
if [ $? -ne 0 ]; then | |
boot2docker up | |
boot2docker ssh "sudo modprobe vboxsf && mkdir -p $HOME && sudo mount -t vboxsf home $HOME" | |
else | |
echo "boot2docker is already running. Execute this manuallly:" | |
echo 'boot2docker ssh "sudo modprobe vboxsf && mkdir -p $HOME && sudo mount -t vboxsf home $HOME"' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment