Utilities for working with Docker/OCI images.
  • Rust 96.1%
  • Nix 1.8%
  • Dockerfile 1.7%
  • HCL 0.4%
Find a file
rster2002 fe57330ca9
Some checks failed
/ Crate passes fmt checks (push) Failing after 21s
/ Crate passes clippy lints (push) Successful in 46s
/ Crate compiles (push) Successful in 1m0s
♻️ Some more refactoring
2026-02-19 22:32:43 +01:00
.forgejo/workflows 👷 Working on CI 2026-02-02 20:53:55 +01:00
ocicp ♻️ Some more refactoring 2026-02-19 22:32:43 +01:00
ocidrm ♻️ Some more refactoring 2026-02-19 22:32:43 +01:00
shared ♻️ Some more refactoring 2026-02-19 22:32:43 +01:00
.gitignore 🚧 Poor attempt at *something* 2026-01-27 21:53:11 +01:00
Cargo.lock ♻️ Some more refactoring 2026-02-19 22:32:43 +01: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 🔖 Tag version 0.6.1 2026-02-19 22:15:32 +01: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