ssh timeout + docker install

This commit is contained in:
Andras Bacsai
2023-05-02 19:15:17 +02:00
parent 58d51dd128
commit 910e8279a0
3 changed files with 7 additions and 3 deletions

View File

@@ -26,8 +26,9 @@ class Form extends Component
public function installDocker()
{
$config = base64_encode('{ "live-restore": true }');
runRemoteCommandSync($this->server, ["mkdir -p /etc/docker/", "touch /etc/docker/daemon.json", "echo '{$config}' | base64 -d > /etc/docker/daemon.json"]);
runRemoteCommandSync($this->server, ['sh -c "$(curl --silent -fsSL https://get.docker.com)"']);
runRemoteCommandSync($this->server, [
"curl https://releases.rancher.com/install-docker/23.0.sh | sh"
]);
}
public function checkConnection()
{