Share feedback
Answers are generated based on the documentation.
{ const container = $el; // The div with overflow const item = document.getElementById('sidebar-current-page') if (item) { const containerTop = container.scrollTop; const containerBottom = containerTop + container.clientHeight; const itemTop = item.offsetTop - container.offsetTop; const itemBottom = itemTop + item.offsetHeight; // Scroll only if the item is out of view if (itemBottom > containerBottom - 200) { container.scrollTop = itemTop - (container.clientHeight / 2 - item.offsetHeight / 2); } } })" class="bg-background-toc dark:bg-background-toc fixed top-0 z-40 hidden h-screen w-full flex-none overflow-x-hidden overflow-y-auto md:sticky md:top-16 md:z-auto md:block md:h-[calc(100vh-64px)] md:w-[320px]" :class="{ 'hidden': ! $store.showSidebar }">

docker dhi mirror stop

DescriptionStop mirroring one or more Docker Hardened Images
Usagedocker dhi mirror stop <repository> [repository...]

Description

Stop mirroring one or more Docker Hardened Image repositories.

Multiple repositories can be specified as positional arguments.

Each repository can be specified as:

  • namespace/name (e.g., myorg/dhi-python) - org must match --org flag or config
  • name only (e.g., dhi-python) - the namespace can be omitted for simplicity and the command will default to the current org automatically

Examples:

Stop mirroring a single repository

docker dhi mirror stop myorg/dhi-python --org myorg

Stop mirroring using just the name (defaults to current org)

docker dhi mirror stop dhi-python --org myorg

Stop mirroring multiple repositories

docker dhi mirror stop dhi-python dhi-golang dhi-node --org myorg

Stop mirroring and delete the repositories

docker dhi mirror stop dhi-python dhi-golang --org myorg --delete

Stop mirroring, delete without confirmation prompt

docker dhi mirror stop dhi-python dhi-golang --org myorg --delete --force

Stop mirroring all repositories matching a filter (using shell substitution)

docker dhi mirror stop $(docker dhi mirror list --org myorg --filter golang --json | jq -r '.[].repository') --org myorg

Options

OptionDefaultDescription
--deleteDelete the repositories after stopping mirroring
-f, --forceSkip confirmation prompt when deleting repositories