Share feedback
Answers are generated based on the documentation.

docker dhi mirror start

DescriptionStart mirroring Docker Hardened Images
Usagedocker dhi mirror start

Description

Start mirroring one or more Docker Hardened Images to your organization's registry.

Repository mappings are specified using the -r flag. The following formats are supported:

source Only the source repository; destination is auto-generated as /dhi- source,destination Source and destination; namespaces are filled from config if omitted ns/source,ns/dest Fully qualified source and destination

The source namespace defaults to "dhi" when not specified. The destination namespace defaults to the configured organization (--org or config).

Examples:

These are all equivalent (assuming --org myorg):

dhictl mirror start --org myorg -r dhi/golang,myorg/dhi-golang dhictl mirror start --org myorg -r golang,dhi-golang dhictl mirror start --org myorg -r golang

Mirror multiple repositories

dhictl mirror start --org myorg -r golang -r python

Options

OptionDefaultDescription
-d, --dependenciesMirrors any existing dependencies
--jsonOutput in JSON format
-r, --repoRepository mapping in format source,destination (can be specified multiple times)