| Crates.io | ociman |
| lib.rs | ociman |
| version | 0.0.1 |
| created_at | 2025-11-29 04:11:27.00209+00 |
| updated_at | 2026-01-14 01:18:17.938163+00 |
| description | Unified API for OCI container runtimes (Docker, Podman) |
| homepage | |
| repository | https://github.com/mbj/mrs/tree/main/ociman |
| max_upload_size | |
| id | 1956356 |
| size | 126,608 |
A Rust library providing a unified API for OCI container runtimes (Docker, Podman).
ociman is highly unstable and exists solely to serve pg-ephemeral. The API is changing frequently and nothing should be considered stable. Breaking changes occur without notice as the library evolves to meet pg-ephemeral's needs.
Do not use this library for other projects at this time.
OCIMAN_BACKEND environment variableociman supports automatic tag generation based on content hashing (SHA256). This ensures deterministic builds where the same content always produces the same image tag.
Benefits:
Important: Content-based hashing only captures the Dockerfile and build context, not the base images. Using unspecific tags like FROM alpine:latest reduces reproducibility since latest can point to different images over time. For fully reproducible builds, use specific base image digests:
# Less reproducible - tag can change
FROM alpine:latest
# More reproducible - specific version tag
FROM alpine:3.19
# Most reproducible - pinned to specific digest
FROM alpine@sha256:6457d53fb065d6f250e1504b9bc42d5b6c65941d57532c072d929dd0628977d0
See workspace root for license information.