mirror of
https://github.com/wsargent/docker-cheat-sheet.git
synced 2025-09-22 05:40:50 +02:00
previously only printing the line again
added awk split to split the docker images output and return image id only
This commit is contained in:
parent
4b3780e322
commit
d43d1b0223
1 changed files with 1 additions and 1 deletions
|
@ -761,7 +761,7 @@ docker ps -a -f ancestor=ubuntu
|
|||
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue