Skip to content

Instantly share code, notes, and snippets.

@hourback
Last active August 29, 2015 14:06
Show Gist options
  • Save hourback/1c3ee484fcd6b32369ed to your computer and use it in GitHub Desktop.
Save hourback/1c3ee484fcd6b32369ed to your computer and use it in GitHub Desktop.
I run this when I start up boot2docker. (It's supposed to run automatically, but there must be a bug in boot2docker that keeps this from doing so.)
#!/bin/bash
# Set up SSH keys for Github
source set-up-ssh.sh
ln -s /var/lib/boot2docker/.gitconfig ~/.gitconfig
docker start my-data
docker run --rm -v /usr/local/bin/docker:/docker -v /var/run/docker.sock:/docker.sock svendowideit/samba my-data
#!/bin/bash
export SSHAGENT=/usr/local/bin/ssh-agent
export SSHAGENTARGS="-s"
if [ -z "$SSH_AUTH_SOCK" -a -x "$SSHAGENT" ]; then
eval `$SSHAGENT $SSHAGENTARGS`
trap "kill $SSH_AGENT_PID" 0
fi
ssh-add /var/lib/boot2docker/id_rsa
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment