Utilities for working with Docker/OCI images.
  • Rust 96.1%
  • Nix 1.8%
  • Dockerfile 1.7%
  • HCL 0.4%
Find a file
rster2002 777850e360
All checks were successful
/ Crate passes fmt checks (push) Successful in 28s
/ Crate passes clippy lints (push) Successful in 54s
/ Crate compiles (push) Successful in 1m9s
🎨 Run cargo fmt
2026-04-03 17:17:54 +02:00
.forgejo/workflows 👷 Working on CI 2026-02-02 20:53:55 +01:00
ocicp 🎨 Run cargo fmt 2026-04-03 17:17:54 +02:00
ocidrm ♻️ Some more refactoring 2026-02-19 22:32:43 +01:00
shared 🎨 Run cargo fmt 2026-04-03 17:17:54 +02:00
.gitignore 🚧 Poor attempt at *something* 2026-01-27 21:53:11 +01:00
Cargo.lock 🐛 Fix local docker image export 2026-04-03 17:17:28 +02:00
Cargo.toml ♻️ Some more refactoring 2026-02-19 22:32:43 +01:00
docker-bake.hcl 🚚 Move everything to a workspace 2026-02-17 17:14:16 +01:00
flake.lock 📦️ Include flake file again 2026-02-02 20:56:59 +01:00
flake.nix 🐛 Fix local docker image export 2026-04-03 17:17:28 +02:00
ocicp.Dockerfile 🚚 Move everything to a workspace 2026-02-17 17:14:16 +01:00
readme.md 📝 Update readme 2026-02-18 21:41:49 +01:00

OCICP

Small utility for directly copying contents out of images.

Usage

# Copy from local image
ocicp 'docker:some-image:/out/{bin,lib}/**/*' ./out

# ... with tag
ocicp 'docker:some-image:alpine:/out/{bin,lib}/**/*' ./out

# Copy from remote registry using stored credentials
ocicp 'docker+https://some-registry.com/some-image:latest:/out/{bin,lib}/**/*' ./out

# ... or provide a username and password directly
ocicp 'docker+https://username:password@some-registry.com/some-image:latest:/out/{bin,lib}/**/*' ./out