mirror of
https://github.com/awakesecurity/hocker.git
synced 2024-11-22 19:23:16 +03:00
.. | ||
Main.hs | ||
README.md |
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])
[--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)
--out STRING Write content to location
-l,--layer SHA256 Layer to fetch, by hash digest (unprefixed by the
hash algorithm identifier)
IMAGE-NAME Docker image name, e.g: 'debian' in debian:jessie
IMAGE-TAG Docker image tag identifier, e.g: 'jessie' in
debian:jessie