Skip to content

Instantly share code, notes, and snippets.

@johnmccabe
Created December 23, 2015 10:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save johnmccabe/88fa1a5aef17751a6b0c to your computer and use it in GitHub Desktop.
Save johnmccabe/88fa1a5aef17751a6b0c to your computer and use it in GitHub Desktop.
Bash function to spin up docker cli
docker-cli-env(){
docker_machine_ip=`docker-machine ip default`
bash -c "clear && DOCKER_HOST=tcp://${docker_machine_ip}:2376 DOCKER_CERT_PATH=~/.docker/machine/machines/default DOCKER_TLS_VERIFY=1 /bin/bash"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment