Skip to content

Instantly share code, notes, and snippets.

@etdebruin
Created December 10, 2014 20:46
Show Gist options
  • Save etdebruin/1db453f9c201fc0c8031 to your computer and use it in GitHub Desktop.
Save etdebruin/1db453f9c201fc0c8031 to your computer and use it in GitHub Desktop.
.bash_profile for docker
let i=0
while [ "$(boot2docker status)" != "running" ]; do
if [ $i -lt 10 ]; then
boot2docker start
sleep 3
let i=$i+1
else
break
fi
done
$(boot2docker socket 2>/dev/null)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment