Skip to main content
Version: 1.10.x

Hoppr Docker Image - Intermediate

This tutorial will show you how to run Hoppr from a Docker image.

Getting started

To download the hoppr/hopctl image run docker pull hoppr/hopctl.

Reference:

Running the Bundle Command

To run Hoppr using Docker run, you can use the hoppr/hopctl image.

Example of how to run hopctl subcommands:

docker run \
hoppr/hopctl <subcommand> <arguments>

If you want to run a hopctl subcommand in a local directory, you can mount that directory into a volume using the -v or --volume option.

Example mounting the current working directory as a volume:

docker run -v $(pwd):/data -w /data \
hoppr/hopctl <subcommand> <arguments>

Example bundle where transfer.yml, manifest.yml and the SBOM file referenced in the manifest file are all in the current working directory:

docker run -v $(pwd):/data -w /data  \
hoppr/hopctl bundle manifest.yml --transfer transfer.yml

You may need to set environment variables for things like credentials, proxies, certs, ect...

Example with an environment variable:

docker run -v $(pwd):/data -w /data \
-e http_proxy=http://myproxy.mydomain.com \
hoppr/hopctl <subcommand> <arguments>