Skip to content

Commit

Permalink
Update bash_profile_docker_aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdalert committed Mar 4, 2016
1 parent 1508bbc commit d90d883
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bash_profile_docker_aliases
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@ alias dockipl='docker inspect --format "{{ .NetworkSettings.IPAddress }}" $(dock
alias dip='docker inspect --format "{{ .NetworkSettings.IPAddress }}" '
alias dipl='docker inspect --format "{{ .NetworkSettings.IPAddress }}" $(docker ps -q)'

# Start/Stop the last container created
# Start/Stop the containers
alias mstar1='docker-machine start $(docker-machine ls | tail -1 | awk "{print $1}")'
alias mstop1='docker-machine stop $(docker-machine ls | tail -1 | awk "{print $1}")'
alias dmk='docker-machine kill'
# Gracefully stop and delete all container
alias dra='docker rm $(docker stop $(docker ps -aq))'
# Kill and delete all containers
alias drk='docker rm $(docker kill $(docker ps -aq))'

# Inspect the last container created
alias dmin='docker-machine inspect $(docker-machine ls | tail -1 | awk "{print $1}")'
Expand Down

0 comments on commit d90d883

Please sign in to comment.