Skip to content

Commit

Permalink
build: cleaner docker rmi
Browse files Browse the repository at this point in the history
no need to pipe to awk for orphan images

Signed-off-by: Vincent Batts <vbatts@redhat.com>
  • Loading branch information
vbatts committed Oct 23, 2014
1 parent edf729c commit 22a457e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ function kube::build::clean_images() {
done

echo "+++ Cleaning all other untagged docker images"
docker rmi $(docker images | awk '/^<none>/ {print $3}') 2> /dev/null || true
docker rmi $(docker images -q --filter 'dangling=true') 2> /dev/null || true
}

# Run a command in the kube-build image. This assumes that the image has
Expand Down

0 comments on commit 22a457e

Please sign in to comment.