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 Apr 12, 2016
1 parent b4f5bba commit 7995d19
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bash_profile_docker_aliases
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ alias dinl='docker inspect $(docker ps -qal)'
# Docker inspect all containers
alias dina='docker inspect $(docker ps -qa)'

# Inspect and parse all IPs for all containers
alias dnip='dina | grep -i IPA | grep 1'

# Example Docker network inspect all network subnets
alias dnsub='docker network inspect $(docker network ls -q) | grep Subnet'

# Delete all containers matching the passed paramater
# Example: "delcon ubuntu" or 'anything matching in docker ps output'
delcon() { docker rm -f $(docker ps -a | grep $@ | awk '{print $1}') ;}
Expand Down

0 comments on commit 7995d19

Please sign in to comment.