Skip to main content
Version: 1.0.0

Hauler Content - Images

Hauler Command Line for Images

hauler store add image <image reference> --platform <platform> --key <cosign public key>

Example Commands for Images

# fetch image
hauler store add image neuvector/scanner

# fetch image with full image reference
hauler store add image name: docker.io/neuvector/updater:latest

# fetch image with full image reference with digest
hauler store add image docker.io/neuvector/updater@sha256:0076b356368c9988eec5f3cead771d29a377074b982f22800f4d9c8c3b215a56

# fetch image with full image reference, specific version, specific platform
hauler store add image docker.io/longhornio/longhorn-ui:v1.6.0 --platform: linux/amd64

# fetch image with full image reference, specific version, specific platform, and signature verification
hauler store add image docker.io/longhornio/longhorn-manager:v1.6.0 --platform linux/amd64 --key cosign-public-key.pub

Hauler Manifest for Images

hauler-image-manifest.yaml
apiVersion: content.hauler.cattle.io/v1alpha1
kind: Images
metadata:
name: hauler-content-images-example
annotations:
# global flags for all images in the manifest
# image flags override global flags
hauler.dev/key: <cosign public key>
hauler.dev/platform: <platform>
hauler.dev/registry: <registry>
spec:
images:
- name: <image reference>
key: <cosign public key>
platform: <platform>

Example Manifest for Images

hauler-image-manifest.yaml
apiVersion: content.hauler.cattle.io/v1alpha1
kind: Images
metadata:
name: hauler-content-images-example
annotations:
# global flags for all images in the manifest
# image flags override global flags
hauler.dev/key: <cosign public key>
hauler.dev/platform: <platform>
hauler.dev/registry: <registry>
spec:
images:
# fetch image
- name: neuvector/scanner
# fetch image with full image reference
- name: docker.io/neuvector/updater:latest
# fetch image with full image reference with digest
- name: docker.io/neuvector/updater@sha256:0076b356368c9988eec5f3cead771d29a377074b982f22800f4d9c8c3b215a56
# fetch image with full image reference, specific version, specific platform
- name: docker.io/longhornio/longhorn-ui:v1.6.0
platform: linux/amd64
# fetch image with full image reference, specific version, specific platform, and signature verification
- name: docker.io/longhornio/longhorn-manager:v1.6.0
key: cosign-public-key.pub
platform: linux/amd64