Created
March 7, 2019 20:04
-
-
Save georgebohnisch/ac2ffcca69dbe75a12e407b9a231d954 to your computer and use it in GitHub Desktop.
docker-bash: A terminal profile shortcut to jump into a /bin/bash session on a docker container
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
docker-bash(){ | |
docker exec -it $1 bash -c "stty cols $COLUMNS rows $LINES && bash"; | |
} | |
export -f docker-bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment