-
-
Save feiz/0333b07d7c431baa7893c358dadfab66 to your computer and use it in GitHub Desktop.
dockerコンテナにガッとattachするやつ
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/sh | |
# usage | |
# datt PIECE_OF_CONTAINER_NAME | |
# | |
# example | |
# $ datt app1 | |
# $ datt postg psql -U myuser mydatabase | |
# | |
# This is useful for using pdb. | |
name=$1 | |
docker attach $(docker ps -qf name=$name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment