shizhMSFT / docker-saveoci

A docker plugin to save one or more images to a tar archive in the OCI layout

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-saveoci

A docker plugin to save one or more images to a tar archive in the OCI layout

Install

Run the following command to install on Linux

mkdir ~/.docker/cli-plugins
curl -L https://github.com/shizhMSFT/docker-saveoci/releases/download/v0.1.0/docker-saveoci_0.1.0_linux_amd64.tar.gz | tar xvzC ~/.docker/cli-plugins/ docker-saveoci 

Help information can be reviewed by

docker help

Save Images to an OCI-layout tarbal

The usage is exactly the same as docker save. Try

docker pull hello-world
docker saveoci -o hello.tar hello-world

# After saving, you may use other tools to process further.
oras manifest fetch --oci-layout hello.tar:latest

About

A docker plugin to save one or more images to a tar archive in the OCI layout

License:Apache License 2.0


Languages

Language:Go 92.9%Language:Makefile 7.1%