add function to get ip of a docker container

This commit is contained in:
Jeff Lance 2021-03-31 15:14:58 +02:00
parent 14b5a9cdd8
commit fb7a0a5882

View File

@ -0,0 +1,9 @@
# vim:et sts=2 sw=2 ft=zsh
#
# Display ip of the docker container passed as arg
#
docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${1}
compdef _files dip