From 9b4a2018c66248f4ded5e40fcfba9487311bb613 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Thu, 27 Jul 2023 12:20:14 +0200 Subject: [PATCH] Update bin/docker-traverse.sh --- bin/executable_docker-traverse.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/executable_docker-traverse.sh b/bin/executable_docker-traverse.sh index b3def2b..5c9edd3 100644 --- a/bin/executable_docker-traverse.sh +++ b/bin/executable_docker-traverse.sh @@ -29,12 +29,12 @@ function extract_docker_image { # Save the Docker image as a tar file echo "Saving Docker image as a tar file..." >&2 - docker save "$1" -o "${DESTINATION}/${IMAGE_NAME}.tar" + docker save "$1" -o "${DESTINATION}/image.tar" # Extract the Docker image layers to the destination directory echo "Extracting Docker image layers..." >&2 mkdir -p "${DESTINATION}/layers" - tar -xf "${DESTINATION}/${IMAGE_NAME}.tar" -C "${DESTINATION}/" + tar -xf "${DESTINATION}/image.tar" -C "${DESTINATION}/" # Rename the layer directories to their respective layer IDs LAYERS=$(jq -r '.[0].Layers[]' "${MANIFEST}")