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}")