prefer listing docker images by name when possible

This commit is contained in:
Jesse Luehrs 2025-01-26 14:05:05 -05:00
parent 4b632f81f8
commit 3a460a3526

View File

@ -22,7 +22,7 @@ preview_command = "git show -p --stat --pretty=fuller --color=always {0}"
# Docker
[[cable_channel]]
name = "docker-images"
source_command = "docker image list --format \"{{.ID}}\""
source_command = "docker image list --format=json | jq -r '.[] | .Names[0] // .Id'"
preview_command = "docker image inspect {0} | jq -C"
# S3