Skip to content

Instantly share code, notes, and snippets.

View fnoon's full-sized avatar

Frederick Noon fnoon

  • Extreme Networks
  • California, USA
  • 02:14 (UTC -07:00)
  • LinkedIn in/fnoon
View GitHub Profile
@fnoon
fnoon / image-all-tags-layers.sh
Created August 19, 2023 01:31 — forked from zxkane/image-all-tags-layers.sh
get size of layers of docker image. Inspired by this post(https://ops.tips/blog/inspecting-docker-image-without-pull/).
#!/bin/bash
set -o errexit
source ./library
# Entry point of the script.
# If makes sure that the user supplied the right
# amount of arguments (image_name)
# and then performs the main workflow:
# 1. retrieve the image digest
# 2. retrieve the layer info of image