docker dhi mirror start
| Description | Start mirroring Docker Hardened Images |
|---|---|
| Usage | docker 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
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
| Option | Default | Description |
|---|---|---|
-d, --dependencies | Mirrors any existing dependencies | |
--json | Output in JSON format | |
-r, --repo | Repository mapping in format source,destination (can be specified multiple times) |