aliases: add dockerip to parse docker inspect's output

feature/symbol-search
bretello 2020-12-07 00:43:34 +01:00
parent cd70facdd2
commit 5f952f1e98
Signed by: brethil
GPG Key ID: 876AAC6290170FE7
1 changed files with 2 additions and 0 deletions

View File

@ -84,6 +84,8 @@ alias watcha='watch ' # note the space after watch. This makes watch work with a
# A short version of docker ps
alias dps='docker ps --format "table {{.Image}}\t{{.RunningFor}}\t{{.Status}}\t{{.Ports}}\t{{.Names}}"'
# Get ip for a docker container, usage: `docker inspect <container> | dockerip`
alias dockerip="jq -r '.[].NetworkSettings.Networks.bridge.IPAddress'"
alias pvim='poetry run vim'
alias pshell='poetry shell'