Linux/Docker/Variables & Snippets
Docker Host IP
ip -4 route list match 0/0 | cut -d' ' -f3
List all container IPs
docker ps -q | xargs -n 1 docker inspect --format '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}} {{ .Name }}' | sed 's/ \// /'