dotfiles/.local/bin/docker-ip

4 lines
94 B
Bash
Executable File

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