Skip to content

Instantly share code, notes, and snippets.

@baio
Created October 31, 2015 08:31
Show Gist options
  • Save baio/36af8a47013e2f17e893 to your computer and use it in GitHub Desktop.
Save baio/36af8a47013e2f17e893 to your computer and use it in GitHub Desktop.
~/.bashrc
#docker log by container name
dlog_f() {
docker logs --tail=100 $1
}
alias dlog=dlog_f
dcu_f() {
docker-compose -f $1 up
}
alias dcu=dcu_f
dcs_f() {
docker-compose -f $1 stop
}
alias dcs=dcs_f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment