Skip to content

Instantly share code, notes, and snippets.

@geowarin
Created June 30, 2015 10:22
Show Gist options
  • Save geowarin/dedc50fd792cd13d57eb to your computer and use it in GitHub Desktop.
Save geowarin/dedc50fd792cd13d57eb to your computer and use it in GitHub Desktop.
docker.fish
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