Last active
August 29, 2015 14:16
-
-
Save technovangelist/8fde8e282c9f2712570a to your computer and use it in GitHub Desktop.
docker-compose zsh function
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
dcomp(){ | |
local bdout=$(boot2docker status) 2>/dev/null | |
if [ $bdout = 'poweroff' ]; then | |
boot2docker up && $(boot2docker shellinit) | |
fi | |
docker-compose $* | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment