Last active
February 22, 2017 11:20
-
-
Save ivalentinee/d874fbe122a2d6892227 to your computer and use it in GitHub Desktop.
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
docker_compose_exec() { | |
docker exec -it $(docker-compose ps | grep $1 | awk '{print $1}') ${@:2} | |
} | |
alias dcrun='docker_compose_exec web' | |
alias dcenter='docker_compose_exec web bash' | |
alias dcenter_new='docker-compose run web bash' # if container is not up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment