mirror of
https://github.com/wsargent/docker-cheat-sheet.git
synced 2025-09-22 05:40:50 +02:00
Merge pull request #153 from abusaidm/patch-1
previously only printing the line again
This commit is contained in:
commit
34f7f9cbf6
1 changed files with 1 additions and 1 deletions
|
@ -761,7 +761,7 @@ docker ps -a -f ancestor=ubuntu
|
||||||
|
|
||||||
Remove all untagged images
|
Remove all untagged images
|
||||||
```
|
```
|
||||||
docker rmi $(docker images | grep “^” | awk “{print $3}”)
|
docker rmi $(docker images | grep “^” | awk '{split($0,a," "); print a[3]}')
|
||||||
```
|
```
|
||||||
|
|
||||||
Remove container by a regular expression
|
Remove container by a regular expression
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue