Skip to content

Instantly share code, notes, and snippets.

@fojuth
Created September 16, 2016 07:31
Show Gist options
  • Select an option

  • Save fojuth/d43bf3fa88ca2320d7313ccce2aef383 to your computer and use it in GitHub Desktop.

Select an option

Save fojuth/d43bf3fa88ca2320d7313ccce2aef383 to your computer and use it in GitHub Desktop.
alias docker-bash-api='docker exec -it $(docker ps | grep api | awk '\''{print $1}'\'') bash'
alias docker-bash-www='docker exec -it $(docker ps | grep www | awk '\''{print $1}'\'') bash'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment