Skip to content

Instantly share code, notes, and snippets.

View jdw1023's full-sized avatar
🎯
Focusing

JD Wang jdw1023

🎯
Focusing
  • student at University of Delaware & SANS.edu
  • Delaware
  • X @_JDWang
View GitHub Profile
@jdw1023
jdw1023 / get-docker-compose-size.py
Created August 21, 2024 04:03
fetch image metadata and calculate total size for images in docker-compose.yml
import subprocess
import json
def get_docker_images_from_compose(compose_file):
with open(compose_file, 'r') as file:
compose_data = yaml.safe_load(file)
# Extract image names from services in docker-compose
images = []
for service in compose_data['services'].values():

Keybase proof

I hereby claim:

  • I am jdw1023 on github.
  • I am jdwang (https://keybase.io/jdwang) on keybase.
  • I have a public key whose fingerprint is F378 9DFB 0A3D AA5A 410A B444 7368 1D8F C602 82FD

To claim this, I am signing this object: