#!/bin/sh # Author: Yann Autissier docker images -q --no-trunc --filter dangling=true |while read image; do docker rmi ${image}; done