Created
June 30, 2015 10:22
-
-
Save geowarin/dedc50fd792cd13d57eb to your computer and use it in GitHub Desktop.
docker.fish
This file contains hidden or 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
function docker | |
set -l DOCKER (which docker) | |
if not set -q DOCKER_HOST | |
set -g DOCKER_IP (boot2docker ip) | |
set -gx DOCKER_HOST "tcp://$DOCKER_IP:2376" | |
set -gx DOCKER_CERT_PATH ~/.boot2docker/certs/boot2docker-vm | |
set -gx DOCKER_TLS_VERIFY 1 | |
echo "Set docker host: $DOCKER_HOST" | |
end | |
eval DOCKER $argv | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment