You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5 lines
149 B
5 lines
149 B
3 years ago
|
#!/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/"
|