Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save georgebohnisch/ac2ffcca69dbe75a12e407b9a231d954 to your computer and use it in GitHub Desktop.
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
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