Search or ask Docker

docker dhi mirror start

View Markdown
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 as arguments. The following formats are supported:

source Only the source repository; destination is auto-generated as /dhi- source,destination Source and destination; the destination namespace is 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).

Note: mirroring a repository does not automatically grant every organization member access to it. Members without access to the destination repository need appropriate team repository permissions, which can be set in Docker Hub.

Examples: docker dhi mirror start --org myorg dhi/golang,myorg/dhi-golang dhi/node,myorg/dhi-node docker dhi mirror start --org myorg golang,dhi-golang node,dhi-node docker dhi mirror start --org myorg golang node

Options

OptionDefaultDescription
-d, --dependenciesMirrors any existing dependencies
--jsonOutput in JSON format