Created
February 12, 2015 11:48
-
-
Save cngkaygusuz/79e1306ce08809288a65 to your computer and use it in GitHub Desktop.
Helpful bash functions for docker
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
# Copy and paste this code to your .bashrc and relog to your terminal | |
function dntr { | |
docker exec -ti $1 bash | |
} | |
function dstry { | |
docker stop -t 0 $1 | |
docker rm $1 | |
} | |
function drun { | |
docker run -ti $1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment