Add alias for getting network info about docker containers
This commit is contained in:
parent
e434919210
commit
6dd8b00ad7
@ -67,6 +67,7 @@ alias ll='ls --classify --color --group-directories-first --human-readable -l'
|
|||||||
# system
|
# system
|
||||||
alias bootloader='cd /boot/loader/entries'
|
alias bootloader='cd /boot/loader/entries'
|
||||||
alias restartfans='sudo systemctl restart fancontrol.service'
|
alias restartfans='sudo systemctl restart fancontrol.service'
|
||||||
|
alias dcips=$'docker inspect -f \'{{.Name}}-{{range $k, $v := .NetworkSettings.Networks}}{{$k}}-{{.IPAddress}} {{end}}-{{range $k, $v := .NetworkSettings.Ports}}{{ if not $v }}{{$k}} {{end}}{{end}} -{{range $k, $v := .NetworkSettings.Ports}}{{ if $v }}{{$k}} => {{range . }}{{ .HostIp}}:{{.HostPort}}{{end}}{{end}} {{end}}\' $(docker ps -aq) | column -t -s-'
|
||||||
|
|
||||||
# zsh
|
# zsh
|
||||||
alias zdotdir='cd -- ${ZDOTDIR}'
|
alias zdotdir='cd -- ${ZDOTDIR}'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user