Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

remove [hash]: from (images -q --no-trunc) for compatibility newer docker versions #93

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker-gc
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ xargs -n 1 $DOCKER inspect -f '{{.Image}}' 2>/dev/null |
sort | uniq > images.used

# List images to reap; images that existed last run and are not in use.
$DOCKER images -q --no-trunc | sort | uniq > images.all
$DOCKER images -q --no-trunc | sed 's/[^:]\+://' | sort | uniq > images.all

# Find images that are created at least GRACE_PERIOD_SECONDS ago
echo -n "" > images.reap.tmp
Expand Down