Export docker image into tar file directly from registry API
Project description
docker-export
Export Docker Images to a single .tar
without docker
: Using Python and the registry's API.
Usages
pip3 install docker_export[all]
cli script
docker-export --platform linux/arm/v7 ghcr.io/kiwix/kiwix-tools:3.0.0 kiwix-tools.tar
python module
import pathlib
from docker_export import Platform, Image, export
export(
image=Image.parse("kiwix/kiwix-tools:3.3.0"),
platform=Platform.auto(),
to=pathlib.Path("kiwix-tools.tar"),
)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
docker_export-0.1.tar.gz
(21.0 kB
view hashes)
Built Distribution
Close
Hashes for docker_export-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2fd5b1d821ef2f4db2354f7dedfcb8d1850dd7886ee6898def62a2a37958db7 |
|
MD5 | 804111e27d9435e66758ae12344eacff |
|
BLAKE2b-256 | f3fb2678dfdbaff30ece3b016557ac8681dd058cabc45deefba64984b5e36553 |