Compare commits

...

13 Commits

Author SHA1 Message Date
lunardunno
08c506a489 checking docker status
adding docker readiness status check to
servercontroller.cpp
2023-12-02 12:00:51 +04:00
lunardunno
9d49c5fb77 checking docker status
implementing docker readiness status check
2023-12-02 11:53:25 +04:00
lunardunno
b11c6fc6fe introduction "Failed to" for install_docker.sh 2023-11-22 08:31:16 +04:00
lunardunno
acfb021daa changes for test "Failed to" 2023-11-22 08:27:24 +04:00
lunardunno
394390ef1e test L18 2023-11-22 05:25:22 +04:00
lunardunno
e25d153d33 test 3 2023-11-22 04:53:05 +04:00
lunardunno
ddb05d594e test v2 2023-11-22 04:16:22 +04:00
lunardunno
bfc88ff171 docker replaced with sudo 2023-11-21 21:56:44 +04:00
lunardunno
1cbb7e8c14 test version 2023-11-21 15:31:23 +04:00
lunardunno
50d91526fb excluding for dist debian
excluding $dist debian from sudo systemctl enable --now docker, since it is launched at the post-install stage
2023-11-19 21:12:55 +04:00
lunardunno
77a411f1d7 Script_minimization_Ubuntu_fix
Script minimization.
Minimizing log information for debian and ubuntu.
Return delay to 5s for correct execution when reinstalling docker.io on Ubuntu22.
Introduction checking the status of docker.service, and corresponding error notification
2023-11-19 11:27:41 +04:00
lunardunno
4216e50e6e Improve logic of startup docker.service
Rebase install_docker.sh to dev.
Separate docker.service status check for Fedora from Debian and Centos.
2023-11-18 00:53:09 +04:00
lunardunno
b3b4adf152 changing logic startup docker.service 2023-11-15 13:43:05 +04:00
2 changed files with 3 additions and 1 deletions

View File

@@ -368,6 +368,8 @@ ErrorCode ServerController::installDockerWorker(const ServerCredentials &credent
return ErrorCode::ServerPacketManagerError;
if (stdOut.contains("command not found"))
return ErrorCode::ServerDockerFailedError;
if (stdOut.contains("Docker status is not active"))
return ErrorCode::ServerDockerFailedError;
return error;
}

View File

@@ -15,5 +15,5 @@ if [ "$dist" = "debian" ]; then \
if [ -z "$docker_service" ]; then sudo $pm update -yq; sudo $pm install -yq curl $docker_pkg; fi;\
sleep 3 && sudo systemctl start docker && sleep 3;\
fi;\
if ! command -v sudo > /dev/null 2>&1; then echo "Failed to install Docker";exit 1;fi;\
if [ "$(systemctl is-active docker)" != "active" ]; then echo "Docker status is not active"; fi;\
docker --version