Created
December 23, 2015 10:57
-
-
Save johnmccabe/88fa1a5aef17751a6b0c to your computer and use it in GitHub Desktop.
Bash function to spin up docker cli
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
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