Created
July 20, 2017 16:13
-
-
Save marklabrecque/52cc9a4a03fe30f8113b08ff8bdc15a2 to your computer and use it in GitHub Desktop.
Docker/Compose utilities
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 dssh() { | |
docker exec -ti $1 /bin/bash | |
} | |
function drd() { | |
docker exec shipyard_php_1 /code/vendor/bin/drush $@ --uri=http://web --root=/code/web | |
} | |
alias artisan='php artisan' | |
alias docker-kill-all='docker kill $(docker ps -q) && docker container prune -f' | |
alias d-c='docker-compose' | |
alias dphp='docker-compose exec php /bin/bash' | |
alias dweb='docker-compose exec web /bin/bash' | |
alias dweb-logs='docker-compose exec web /bin/bash -c "cat /var/log/nginx/error.log"' | |
alias docker-rmi-all='docker rmi $(docker images -q) --force' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment