hocker/hocker-layer
Zoe Zuser adfc3daf0c Add -f/--credentials-file option
... so you can trace / log the command line invocations without logging
your secrets.
2024-10-08 09:21:40 -07:00
..
Main.hs Requalify all Lib.<fn> use-sites with Hocker.Lib. (#17) 2017-10-20 12:57:25 -05:00
README.md Add -f/--credentials-file option 2024-10-08 09:21:40 -07:00

Retrieve an individual docker image layer

Quickstart

Fetch a docker image layer from a docker registry without using docker

Usage: hocker-layer [--registry URI]
                    [(-u|--username BASIC USERNAME)
                      (-p|--password BASIC PASSWORD) |
                      (-t|--token BEARER TOKEN) | (-f|--credentials-file PATH)]
                    [--out STRING] (-l|--layer SHA256) IMAGE-NAME IMAGE-TAG

Available options:
  -h,--help                Show this help text
  --registry URI           URI of registry, defaults to the Docker Hub registry
  -u,--username BASIC USERNAME
                           Username part of a basic auth credential
  -p,--password BASIC PASSWORD
                           Password part of a basic auth credential
  -t,--token BEARER TOKEN  Bearer token retrieved from a call to `docker login`
                           (mutually exclusive to --username and --password and --credentials-file)
  -f,--credentials-file PATH
                           Path to a file containing either:

                           USERNAME=<username>
                           PASSWORD=<password>

                           or

                           BEARER_TOKEN=<token>

                           (mutually exclusive to --username and --password and --token)
  --out STRING             Write content to location
  -l,--layer SHA256        Hash digest of layer to fetch
  IMAGE-NAME               Docker image name, e.g: 'debian' in debian:jessie
  IMAGE-TAG                Docker image tag identifier, e.g: 'jessie' in
                           debian:jessie