cheliequan
2023-05-30 66dfb5b756fed78388d649242f08131da84173c6
安装docker的时候执行sudo systemctl restart docker
1个文件已修改
2 ■■■ 已修改文件
src/util/util.go 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/util/util.go
@@ -107,7 +107,7 @@
    }
    // 安装Docker
    installCommand := "sudo curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh"
    installCommand := "sudo curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh && sudo systemctl restart docker"
    _, err = SSHExec(nodeIP, sshUsername, sshPassword, installCommand, sshPort)
    if err != nil {
        return fmt.Errorf("failed to install Docker on the remote server: %v", err)