No description
Find a file
2026-05-12 13:08:25 +03:00
cmd/trashdump feat: layers pulling 2026-05-12 13:08:25 +03:00
internal/dump feat: layers pulling 2026-05-12 13:08:25 +03:00
.gitignore feat: initial -
go.mod chore: whoops 2026-04-13 23:22:40 +03:00
go.sum chore: some rebranding && upd deps 2026-04-13 23:15:42 +03:00
README.md chore: whoops 2026-04-13 23:22:40 +03:00

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.