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:
abusaidm 2018-01-05 10:47:26 +00:00 committed by GitHub
parent 4b3780e322
commit d43d1b0223
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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