Last active
August 29, 2015 14:22
-
-
Save bigtiger/1d7e7e58f04de1573ab1 to your computer and use it in GitHub Desktop.
Show list of docker containers and make it easier to connect to them.
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 dosh() { | |
if [ "$1" != "" ] | |
then | |
docker exec -i -t `docker ps|grep $1|cut -d ' ' -f 1` bash | |
else | |
docker ps|grep gopro.*:latest|grep -v postgres|cut -d ' ' -f 1-10 | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This has been improved by @itsthatguy https://gist.github.com/itsthatguy/3494bffbc3ad52132f69