Add regular expression

This commit is contained in:
Will Sargent 2014-10-25 14:29:25 -07:00
parent 56303f9634
commit af10385d62

View file

@ -358,6 +358,12 @@ docker inspect -f '{{ .NetworkSettings.IPAddress }}' <container_name>
docker inspect -f '{{range $p, $conf := .NetworkSettings.Ports}} {{$p}} -> {{(index $conf 0).HostPort}} {{end}}' <containername>
```
### Find containers by regular expression
```
for i in $(docker ps -a | grep "REGEXP_PATTERN" | cut -f1 -d" "); do echo $i; done`
```
### Get Environment Settings
```