-
-
Save tobias-johansson/a3f6298454fd5945a2d1 to your computer and use it in GitHub Desktop.
Docker Aliases
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
#!/bin/bash | |
case "$1" in | |
pss ) | |
exec docker ps --format "table {{.ID}}\t{{.Names}}\t{{.Image}}\t{{.RunningFor}}" ${@:2} ;; | |
enter ) | |
exec docker exec -ti $2 bash ;; | |
* ) | |
exec docker $@ ;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment