Skip to content

Instantly share code, notes, and snippets.

@cngkaygusuz
Created February 12, 2015 11:48
Show Gist options
  • Save cngkaygusuz/79e1306ce08809288a65 to your computer and use it in GitHub Desktop.
Save cngkaygusuz/79e1306ce08809288a65 to your computer and use it in GitHub Desktop.
Helpful bash functions for docker
# 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