1
0
mirror of synced 2026-01-07 09:05:45 -05:00
Files
airbyte/tools/bin/clean_images.sh
2021-02-10 09:15:52 -08:00

16 lines
460 B
Bash
Executable File

#!/usr/bin/env bash
set -e
. tools/lib/lib.sh
echo "Disk space before:"
docker run --rm busybox df -h
docker images "airbyte/source*" | grep airbyte | grep -v postgres | tr -s ' ' | cut -d" " -f 3 | xargs -n 1 -I {} docker image rm {}
docker images "airbyte/destination*" | grep airbyte | grep -v postgres | tr -s ' ' | cut -d" " -f 3 | xargs -n 1 -I {} docker image rm {}
docker image prune --force
echo "Disk space after:"
docker run --rm busybox df -h