Merge pull request #132 from zsjohny/patch-2

Update README.md
This commit is contained in:
Will Sargent 2017-04-30 11:58:50 -07:00 committed by GitHub
commit e112c3fb7c

View file

@ -744,6 +744,19 @@ For all containers listed by image:
docker ps -a -f ancestor=ubuntu
```
Remove all untagged images
```
docker rmi $(docker images | grep “^” | awk “{print $3}”)
```
Remove container by a regular expression
```
docker ps -a | grep wildfly | awk '{print $1}' | xargs docker rm -f
```
Remove all exited containers
```
docker rm -f $(docker ps -a | grep Exit | awk '{ print $1 }')
```
## Contributing