13:06:34 CST success: [node2] 13:06:34 CST success: [node1] 13:06:34 CST [ConfigureOSModule] configure the ntp server for each node 13:06:34 CST skipped: [node1] 13:06:34 CST skipped: [master] 13:06:34 CST skipped: [node2] 13:06:34 CST [KubernetesStatusModule] Get kubernetes cluster status 13:06:35 CST success: [master] 13:06:35 CST [InstallContainerModule] Sync docker binaries 13:06:42 CST skipped: [master] 13:06:42 CST skipped: [node1] 13:06:42 CST [InstallContainerModule] Generate docker service 13:06:43 CST skipped: [master] 13:06:43 CST skipped: [node1] 13:06:43 CST [InstallContainerModule] Generate docker config 13:06:43 CST skipped: [node1] 13:06:43 CST skipped: [master] 13:06:43 CST [InstallContainerModule] Enable docker 13:06:43 CST skipped: [node1] 13:06:43 CST skipped: [master] 13:06:43 CST [InstallContainerModule] Add auths to container runtime 13:07:02 CST message: [node2] login registry failed, cmd: docker login --username "admin" --password "Harbor12345" dockerhub.kubekey.local, err:Failed to exec command: sudo -E /bin/bash -c "docker login --username "admin" --password "Harbor12345" dockerhub.kubekey.local" WARNING! Using --password via the CLI is insecure. Use --password-stdin. Error response from daemon: Get https://dockerhub.kubekey.local/v2/: x509: certificate signed by unknown authority: Process exited with status 1: Failed to exec command: sudo -E /bin/bash -c "docker login --username "admin" --password "Harbor12345" dockerhub.kubekey.local" WARNING! Using --password via the CLI is insecure. Use --password-stdin. Error response from daemon: Get https://dockerhub.kubekey.local/v2/: x509: certificate signed by unknown authority: Process exited with status 1 13:07:02 CST retry: [node2] 13:07:07 CST message: [node2] login registry failed, cmd: docker login --username "admin" --password "Harbor12345" dockerhub.kubekey.local, err:Failed to exec command: sudo -E /bin/bash -c "docker login --username "admin" --password "Harbor12345" dockerhub.kubekey.local" WARNING! Using --password via the CLI is insecure. Use --password-stdin. Error response from daemon: Get https://dockerhub.kubekey.local/v2/: x509: certificate signed by unknown authority: Process exited with status 1: Failed to exec command: sudo -E /bin/bash -c "docker login --username "admin" --password "Harbor12345" dockerhub.kubekey.local" WARNING! Using --password via the CLI is insecure. Use --password-stdin. Error response from daemon: Get https://dockerhub.kubekey.local/v2/: x509: certificate signed by unknown authority: Process exited with status 1 13:07:07 CST retry: [node2] 13:07:12 CST message: [node2] login registry failed, cmd: docker login --username "admin" --password "Harbor12345" dockerhub.kubekey.local, err:Failed to exec command: sudo -E /bin/bash -c "docker login --username "admin" --password "Harbor12345" dockerhub.kubekey.local" WARNING! Using --password via the CLI is insecure. Use --password-stdin. Error response from daemon: Get https://dockerhub.kubekey.local/v2/: x509: certificate signed by unknown authority: Process exited with status 1: Failed to exec command: sudo -E /bin/bash -c "docker login --username "admin" --password "Harbor12345" dockerhub.kubekey.local" WARNING! Using --password via the CLI is insecure. Use --password-stdin. Error response from daemon: Get https://dockerhub.kubekey.local/v2/: x509: certificate signed by unknown authority: Process exited with status 1 13:07:12 CST success: [master] 13:07:12 CST success: [node1] 13:07:12 CST failed: [node2] error: Pipeline[CreateClusterPipeline] execute failed: Module[InstallContainerModule] exec failed: failed: [node2] [Login PrivateRegistry] exec failed after 3 retires: login registry failed, cmd: docker login --username "admin" --password "Harbor12345" dockerhub.kubekey.local, err:Failed to exec command: sudo -E /bin/bash -c "docker login --username "admin" --password "Harbor12345" dockerhub.kubekey.local" WARNING! Using --password via the CLI is insecure. Use --password-stdin. Error response from daemon: Get https://dockerhub.kubekey.local/v2/: x509: certificate signed by unknown authority: Process exited with status 1: Failed to exec command: sudo -E /bin/bash -c "docker login --username "admin" --password "Harbor12345" dockerhub.kubekey.local" WARNING! Using --password via the CLI is insecure. Use --password-stdin. Error response from daemon: Get https://dockerhub.kubekey.local/v2/: x509: certificate signed by unknown authority: Process exited with status 1 [root@master kubesphere]#

kube-dzr 解决了,仓库节点里面修改这个文件:/etc/docker/daemon.json

[root@re1 harbor]# cat /etc/docker/daemon.json

“log-opts”: {

"max-size": "5m",
"max-file":"3"

“exec-opts”: [“native.cgroupdriver=systemd”],

“insecure-registries”: [“dockerhub.kubekey.local”]

kube-dzr

24sama login registry failed, cmd: docker login --username "admin" --password "Harbor12345" dockerhub.kubekey.local, err:Failed to exec command: sudo -E /bin/bash -c "docker login --username "admin" --password "Harbor12345" dockerhub.kubekey.local"
/bin/bash:docker:command not found : Process exited with status 127: Failed to exec command : sudo -E /bin/bash -c "docker login --username "admin" --password "Harbor12345" docker.kubekey.local"
/bin/bash:docker:command not found : Process exited with status 127:

您好,我的master,node1,node2,node3都是这个错误,麻烦您看一下,因为我的代码是在内网环境下安装的,不能复制,这是手敲的 🤣