#!/bin/bash
PAT=".+IPAddress\W+\"([0-9\.]+).+"
docker ps | grep unki/$1 | cut -d' ' -f1 | xargs docker inspect | grep -P $PAT | sed -r "s/$PAT/\1/"