Skip to content

Instantly share code, notes, and snippets.

@kjschiroo
Last active September 30, 2017 21:35
Show Gist options
  • Save kjschiroo/869cde4589ab6c037c13842e65fa7e69 to your computer and use it in GitHub Desktop.
Save kjschiroo/869cde4589ab6c037c13842e65fa7e69 to your computer and use it in GitHub Desktop.
A shell function to quickly connect to a docker container
dock () {
docker exec -it $1 /bin/bash || docker exec -it $1 /bin/sh;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment