1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-22 11:31:30 +01:00

aliases: add dockerip to parse docker inspect's output

This commit is contained in:
bretello 2020-12-07 00:43:34 +01:00
parent cd70facdd2
commit 5f952f1e98
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

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 # A short version of docker ps
alias dps='docker ps --format "table {{.Image}}\t{{.RunningFor}}\t{{.Status}}\t{{.Ports}}\t{{.Names}}"' 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 pvim='poetry run vim'
alias pshell='poetry shell' alias pshell='poetry shell'