[root@localhost kubesphere-all-v3.1.0-offline-linux-amd64]# ./kk init os -f xiangxun.yaml -s ./dependencies/ –add-images-repo
INFO[08:24:55 CST] Init operating system
INFO[08:24:56 CST] Start initializing kubesphere-02 [193.169.100.51] node=193.169.100.51
INFO[08:24:56 CST] Start initializing kubesphere-04 [193.169.100.53] node=193.169.100.53
INFO[08:24:56 CST] Start initializing kubesphere-03 [193.169.100.52] node=193.169.100.52
INFO[08:24:57 CST] Start initializing kubesphere-05 [193.169.100.54] node=193.169.100.54
INFO[08:24:57 CST] Start initializing kubesphere-01 [193.169.100.50] node=193.169.100.50
INFO[08:24:57 CST] Start initializing kubesphere-06 [193.169.100.55] node=193.169.100.55
Push /root/kubesphere-all-v3.1.0-offline-linux-amd64/dependencies/centos-7-amd64-rpms.tar.gz to 193.169.100.52:/tmp Done
Push /root/kubesphere-all-v3.1.0-offline-linux-amd64/dependencies/centos-7-amd64-rpms.tar.gz to 193.169.100.51:/tmp Done
Push /root/kubesphere-all-v3.1.0-offline-linux-amd64/dependencies/centos-7-amd64-rpms.tar.gz to 193.169.100.54:/tmp Done
Push /root/kubesphere-all-v3.1.0-offline-linux-amd64/dependencies/centos-7-amd64-rpms.tar.gz to 193.169.100.55:/tmp Done
Push /root/kubesphere-all-v3.1.0-offline-linux-amd64/dependencies/centos-7-amd64-rpms.tar.gz to 193.169.100.53:/tmp Done
Push /root/kubesphere-all-v3.1.0-offline-linux-amd64/dependencies/centos-7-amd64-rpms.tar.gz to 193.169.100.50:/tmp Done
INFO[08:30:47 CST] Complete initialization kubesphere-03 [193.169.100.52] node=193.169.100.52
INFO[08:30:50 CST] Complete initialization kubesphere-02 [193.169.100.51] node=193.169.100.51
INFO[08:30:57 CST] Complete initialization kubesphere-04 [193.169.100.53] node=193.169.100.53
INFO[08:31:31 CST] Complete initialization kubesphere-01 [193.169.100.50] node=193.169.100.50
INFO[08:32:09 CST] Complete initialization kubesphere-05 [193.169.100.54] node=193.169.100.54
INFO[08:32:10 CST] Complete initialization kubesphere-06 [193.169.100.55] node=193.169.100.55
WARN[08:32:12 CST] Task failed …
WARN[08:32:12 CST] error: Unable to find image ‘registry:2’ locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [:
See ‘docker run –help’.
: exit status 125
Error: Failed to init operating system: Unable to find image ‘registry:2’ locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [:
See ‘docker run –help’.
: exit status 125
Usage:
kk init os [flags]
Flags:
–add-images-repo Create a local images registry
-f, –filename string Path to a configuration file
-h, –help help for os
-s, –sources string Path to the dependencies’ dir
Global Flags:
–debug Print detailed information (default true)
–in-cluster Running inside the cluster
Failed to init operating system: Unable to find image ‘registry:2’ locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [:
See ‘docker run –help’.
: exit status 125
[root@localhost kubesphere-all-v3.1.0-offline-linux-amd64]# cd ..
[root@localhost ~]#