#!/bin/bash
#

purge_id=$(docker ps -qf status=exited && docker ps -qf status=created && docker ps -qf status=dead)

if [ -n "$purge_id" ]; then
    docker rm $purge_id
fi
