oc image mirror --from-dir does not override --dir
Issue
- For disconnected clusters, mirror registry is an important asset but if the registry content is exported to directory on the host, moving the content from the directory to the registry fails with the following message
# oc image mirror -a ${LOCAL_SECRET_JSON} --from-dir=exportdir file://v2/openshift/release:4.3.0* ${LOCAL_REGISTRY}/ocp-4.3
error: you must specify at least one source image to pull and the destination to push to as SRC=DST or SRC DST [DST2 DST3 ...]
- Is it a supported and recommended method on following this path?
Environment
- Red Hat OpenShift Container Platform
- 4.2.+
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.