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
#!/usr/bin/env zsh | |
# usage: docker-machine-rename default my-default | |
function docker-machine-rename { | |
oldName="$1"; | |
newName="$2"; | |
[ -z "$oldName" -o -z "$newName" ] && echo "Must specify both the old and new machine names" && return 2; | |
storePathRoot=$(docker-machine inspect -f '{{ .Driver.StorePath }}' "$oldName"); |