Rke up the implementation of the cluster installation
Given as follows:
WARN[0000] Failed to set up SSH tunneling for host [172.20.101.167]:
Can't retrieve Docker Info: error during connect: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info: Unable to access the Docker socket (/var/run/docker.sock).
Please check if the configured user can execute `docker ps` on the node, and if the SSH server version is at least version 6.7 or higher.
If you are using RedHat/CentOS, you can't use the user `root`.
Please refer to the documentation for more instructions. Error: ssh: rejected: administratively prohibited (open failed)
Tip the contents of the error
He said roughly meaning:
1: Centos system can not perform docker command root;
2: SSHD service of not less than version 6.7;
Solution:
Create a user group and add to docker
groupadd docker
useradd rancher -G docker
echo "123456" | passwd --stdin rancher
Or added to an existing account docke a group;
usermod ptmind -G docker
Note Review:
nodes:
- address: 172.20.101.157 #集群节点的地址
user: ptmind #使用哪个用户执行安装命令 <=== 修改用户