From 7995d199b15884eb3e2da67a5df1c3bf472962db Mon Sep 17 00:00:00 2001 From: Brent Salisbury Date: Tue, 12 Apr 2016 00:03:04 -0400 Subject: [PATCH] Update bash_profile_docker_aliases --- bash_profile_docker_aliases | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bash_profile_docker_aliases b/bash_profile_docker_aliases index c23407e..90813b7 100644 --- a/bash_profile_docker_aliases +++ b/bash_profile_docker_aliases @@ -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}') ;}