#!/usr/bin/env bash
# SPDX-License-Identifier: MIT
# ──────────────────────────────────────────────────────────────────────────────
# $source: cappysan-dotfile-scripts$
# ──────────────────────────────────────────────────────────────────────────────
#
# NAME
#      prune - clean the docker images and process
#
# SEE ALSO
#      docker(1)
#
set -eu -o pipefail

docker container prune -f || true
docker volume prune -f "${@}" || true
docker network prune -f || true
docker image prune -f "${@}" || true
