-
-
Save kjschiroo/869cde4589ab6c037c13842e65fa7e69 to your computer and use it in GitHub Desktop.
A shell function to quickly connect to 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
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