소스 검색

Remove tags only instead of images

Mike Dillon 10 년 전
부모
커밋
d61a3125fd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      test/clean.sh

+ 1 - 1
test/clean.sh

@@ -1,4 +1,4 @@
 #!/bin/bash
 set -e
 
-docker images -q 'librarytest/*' | xargs docker rmi -f
+docker images 'librarytest/*' | awk 'NR>1 { print $1":"$2 }' | xargs -r docker rmi