stop docker id with all its children code example Example: image has dependent child images docker rmi $(docker images --filter "dangling=true" -q --no-trunc)