Newer
Older
netbox-docker / build-functions / get-public-image-config.sh
@Tobias Genannt Tobias Genannt on 16 Mar 2023 239 bytes Simplified basse image check
#!/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"
}