dotfiles/.local/bin/docker-ip

4 lines
97 B
Bash
Executable File

#!/bin/bash
sudo docker inspect $@ -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}'