#!/usr/bin/env bash
# SPDX-License-Identifier: MIT
# ──────────────────────────────────────────────────────────────────────────────
# $source: cappysan-dotfile-scripts$
# ──────────────────────────────────────────────────────────────────────────────
#
# NAME
#      upgrade - upgrade all images by downloading newer versions
#
# SEE ALSO
#      docker(1)
#
set -eu -o pipefail

exec docker images --format table | tail -n '+2' | grep -v '<none>' | awk -F' ' '{ print $1 }' | xargs -n1 --no-run-if-empty docker pull
