Registry / utility / containers-image-v5

containers-image-v5

JSON →
library5.33.0gogounverified

Provides libraries and commands to interact with container images, including pulling, pushing, and managing image manifests.

go get github.com/containers/image/v5
INSTALL
IMPORT
SIG · CONTAINERS-IMAGE-V
C
containers-image-v5
utilitygov5.33.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

image
github.com/containers/image/v5

Copy a container image from one registry to another

package main import ( "context" "fmt" "github.com/containers/image/v5/copy" "github.com/containers/image/v5/types" ) func main() { ctx := context.Background() policy := &types.Policy{} srcRef, _ := types.ParseImageName("docker://alpine:latest") destRef, _ := types.ParseImageName("docker://myregistry/alpine:latest") _, err := copy.Image(ctx, policy, destRef, srcRef, nil) if err != nil { fmt.Println(err) } }
Debug
Known issues
gotchaRootless mode requires additional setup for storage access
fix
Configure containers/storage store properly for rootless operation
affects: >=5.0.0
Upgrade
Version history
5.33.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Amazon
1
Resources
containers-image-v5 — go get containers-image-v5 · libregistry