mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	build: cleaner docker rmi
				
					
				
			no need to pipe to awk for orphan images Signed-off-by: Vincent Batts <vbatts@redhat.com>
This commit is contained in:
		@@ -346,7 +346,7 @@ function kube::build::clean_images() {
 | 
				
			|||||||
  done
 | 
					  done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  echo "+++ Cleaning all other untagged docker images"
 | 
					  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
 | 
					# Run a command in the kube-build image.  This assumes that the image has
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user