This is share svg Share this item

Docker Extract (CLI)

Minimal-dependency shell script to pull and extract all files from an image in Docker Hub

usage :

[~] # docker-image-extract
/usr/bin/docker-image-extract IMAGE[:REF]

This script pulls and extracts all files from an image in Docker Hub.


# Pull and extract all files in the 'hello-world' image tagged 'latest'.
$ /usr/bin/docker-image-extract hello-world:latest

# Same as above; tag defaults to 'latest'.
$ /usr/bin/docker-image-extract hello-world

# Same as above, but specify the image by digest.
# This also allows for pulling an image for a non-amd64 platform.
$ /usr/bin/docker-image-extract hello-world:sha256:90659bf80b44ce6be8234e6ff90a1ac34acbeb826903b02cfa0da11c82cbc042

Your gratitude and finance will help me to continue integration of this QPKG and maintain up to date versions.

Contact the Author

No older version