Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implementation of docker status check #449

Draft
wants to merge 13 commits into
base: dev
Choose a base branch
from
2 changes: 2 additions & 0 deletions client/core/servercontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion client/server_scripts/install_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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