This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
netbox-docker/build-functions/get-public-image-config.sh
2023-03-16 07:50:24 +01:00

13 lines
239 B
Bash

#!/bin/bash
get_image_label() {
local label=$1
local image=$2
skopeo inspect "docker://$image" | jq -r ".Labels[\"$label\"]"
}
get_image_last_layer() {
local image=$1
skopeo inspect "docker://$image" | jq -r ".Layers | last"
}