dotfiles/.local/bin/docker-ip

4 lines
97 B
Plaintext
Raw Normal View History

2023-08-14 08:09:11 +00:00
#!/bin/bash
2023-09-05 03:24:46 +00:00
sudo docker inspect $@ -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}'