Skip to main content

Export docker image into tar file directly from registry API

Project description

docker-export

PyPI version shields.io CodeFactor License: GPL v3

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 details)

Uploaded Source

Built Distribution

docker_export-0.1-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file docker_export-0.1.tar.gz.

File metadata

  • Download URL: docker_export-0.1.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for docker_export-0.1.tar.gz
Algorithm Hash digest
SHA256 9c650284c06b72fece7d957da81ad28764d72379648e7fca7c387d24f3e53463
MD5 c76c6bde6968a50c3e18f8ddb3dc7cae
BLAKE2b-256 8976b1eab7193996a62c63c309a19ef8ceba374890e9f0ce063628f8d0d1257c

See more details on using hashes here.

File details

Details for the file docker_export-0.1-py3-none-any.whl.

File metadata

  • Download URL: docker_export-0.1-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for docker_export-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b2fd5b1d821ef2f4db2354f7dedfcb8d1850dd7886ee6898def62a2a37958db7
MD5 804111e27d9435e66758ae12344eacff
BLAKE2b-256 f3fb2678dfdbaff30ece3b016557ac8681dd058cabc45deefba64984b5e36553

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page