docker run -d -p 7070:7070 \
--name=rainbond-allinone --restart=always \
-v ~/.ssh:/root/.ssh \
-v /home/xujk/Work/Rainbond/rainbonddata:/app/data \
registry.cn-hangzhou.aliyuncs.com/goodrain/rainbond:v5.11.0-release-allinone
在192.168.231.138機器上,執行命令:udo chmod 777 /home/xujk/.ssh/id_rsa;修改檔案加許可權,600許可權不可以;
Docker有執行docker命令的許可權,但是新增叢集的時候,報error這個錯誤,su命令切賬戶會報這個錯誤,加上sudo沒問題了
check cpu與check memory報錯,保證你的機器能夠滿足條件即可,可以不驗證,這裡應該是ubuntu獲取cpu個數與記憶體大小沒有取到,報錯;也可以改變方法,使其在ubuntu系統中可以取到數值即可
登出600的那行程式碼,改為執行chmod 777這行
export SSH_RSA="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCw1bUDbNn5lb2pLXmObit2VONV8+hdngSbycpX8mmYWTGqveXlDjG+rf6us9pklZ8kjxLIvl/SO16qx3fusIMlL771ido6g0Lv/4Vco21JYUoOWrHyIliIH88CZa3LdVE/+7ns6mX28wfvcKWNaAFvptsMj8RD5G8gHHF7bcqY8Kzspj2ReRD8oqgawoyPsJiiFrEy0vgDrigwoW5RreZ+R1oKaMf3yDyNx2vNXSp1c5SPxwqMEjOlHLlmbA8FvlG5aJ1oYG3ehFxYGj2TkHds9SNfj+vkorPrBQpBI6RikPbPzSq57LqkbxYV7ytTW1g4RFRBxaX1E2dGY5tPnDC9
" && bash init_node
sudo bash clean-rke
wget https://grstatic.oss-cn-shanghai.aliyuncs.com/binary/kubectl -O /usr/bin/kubectl
chmod +x /usr/bin/kubectl
mkdir ~/.kube/
sudo gedit ~/.kube/config