QNAP [ Docker Extract (CLI) ] [ 221225 ] Minimal-dependency shell script to pull and extract all files from an image in Docker Hub

QoolBox

Représentant QNAP
Membre Confirmé
2 Janvier 2014
10 711
183
158
51
France
www.qnap.com
Source : https://github.com/jjlin/docker-image-extract

Download :


usage :

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

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

Examples:

# 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