Skip to content

idkmaybedeveloper/trashdump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trashdump

pull an oci image from any reg (obsiously) and extract its rootfs to a local dir. handles multiplatform manifests, private regs, and insec http regs.

some usage example

$ trashdump alpine:edge
$ trashdump -o ./rootfs -p linux/arm64 ghcr.io/some/image:latest

install

go install github.com/idkmaybedeveloper/trashdump/cmd/trashdump@latest

how does it work?

trashdump uses google/go-containerregistry (crane) under the hood. step by step, it will:

  • parse the image reference and resolve it against the registry;
  • authenticate using da credentials;
  • fetch the image manifest and select platform variant;
  • assemble all layers into a single tar via crane.Export;
  • extract the tar to the output directory, handling regular files, etc.

About

extracting oci containers into a normal folder without fucking around with docker

Resources

Stars

Watchers

Forks

Contributors

Languages