Description of problem:
Mirroring with disk to mirror (uploading image sets to the mirror registry launched locally) oc-mirror v2 connects to the Internet(http://registry.redhat.io/v2)
Version-Release number of selected component (if applicable):
oc mirror v2 4.19.5
How reproducible:
100%
Steps to Reproduce:
oc mirror -p 55001 --authfile ~/.docker/config.json -c imageset-config_loki-operator.yaml --from file://mirror_loki-operator docker://$LOCAL_FQDN:$REG_PORT --v2 --cache-dir ./loki-cache_20250818-4.19.5 --log-level debug 2025/08/18 09:55:28 [INFO] : 👋 Hello, welcome to oc-mirror 2025/08/18 09:55:28 [INFO] : ⚙️ setting up the environment for you... 2025/08/18 09:55:28 [INFO] : 🔀 workflow mode: diskToMirror 2025/08/18 09:55:28 [DEBUG] : helm.New opts.SrcImage.TlsVerify false 2025/08/18 09:55:28 [DEBUG] : local storage registry will log to /home/kni/ocp_material/mirror_loki-operator/working-dir/logs/registry.log 2025/08/18 09:55:28 [INFO] : 📦 Extracting mirror archive(s)... mirror_loki-operator/mirror_000001.tar (6.7 GiB / 6.7 GiB) [=============================================================================================================================================================================================================================================================] 9s 2025/08/18 09:55:37 [DEBUG] : starting local storage on localhost:55001 2025/08/18 09:55:37 [INFO] : 🕵 going to discover the necessary images... 2025/08/18 09:55:37 [INFO] : 🔍 collecting release images... 2025/08/18 09:55:37 [DEBUG] : [ReleaseImageCollector] setting copy option o.Opts.MultiArch=system when collecting releases image 2025/08/18 09:55:37 [DEBUG] : [CollectAll] total release images to copy 0 2025/08/18 09:55:37 [INFO] : 🔍 collecting operator images... 2025/08/18 09:55:37 [DEBUG] : [OperatorImageCollector] setting copy option o.Opts.MultiArch=all when collecting operator images 2025/08/18 09:55:37 [DEBUG] : [OperatorImageCollector] copying operator image registry.redhat.io/redhat/redhat-operator-index:v4.18 ⠋ (0s) Collecting catalog registry.redhat.io/redhat/redhat-operator-index:v4.18 ::1 - - [18/Aug/2025:09:55:37 +0900] "GET /v2/ HTTP/1.1" 200 2 "" "oc-mirror" ::1 - - [18/Aug/2025:09:55:37 +0900] "GET /v2/redhat/loki-operator-index/manifests/v4.18 HTTP/1.1" 200 959 "" "oc-mirror" 2025/08/18 09:55:37 [DEBUG] : Filtering catalog "registry.redhat.io/redhat/redhat-operator-index:v4.18" 2025/08/18 09:55:37 [DEBUG] : Catalog has not been filtered previously ✗ (31s) Collecting catalog registry.redhat.io/redhat/redhat-operator-index:v4.18 2025/08/18 09:56:08 [DEBUG] : [OperatorImageCollector] related images length 0 2025/08/18 09:56:08 [DEBUG] : [OperatorImageCollector] images to copy (before duplicates) 0 2025/08/18 09:56:08 [INFO] : 🔍 collecting additional images... 2025/08/18 09:56:08 [DEBUG] : [AdditionalImagesCollector] setting copy option o.Opts.MultiArch=all when collecting releases image 2025/08/18 09:56:08 [DEBUG] : [CollectAll] total additional images to copy 0 2025/08/18 09:56:08 [INFO] : 🔍 collecting helm images... 2025/08/18 09:56:08 [DEBUG] : [CollectAll] total helm images to copy 0 2025/08/18 09:56:08 [DEBUG] : collection time : 31.246397174s 2025/08/18 09:56:08 [INFO] : mirror time : 40.288009099s 2025/08/18 09:56:08 [INFO] : 👋 Goodbye, thank you for using oc-mirror 2025/08/18 09:56:08 [ERROR] : [Executor] collection error: collect catalog "registry.redhat.io/redhat/redhat-operator-index:v4.18": initializing source docker://registry.redhat.io/redhat/redhat-operator-index:v4.18: pinging container registry registry.redhat.io: Get "http://registry.redhat.io/v2/": dial tcp 192.168.150.10:80: connect: connection refused
Actual results:
Expected results:
Additional info: