diff --git a/client/client_state.cpp b/client/client_state.cpp index c7c460b2ed3..48edc2644d8 100644 --- a/client/client_state.cpp +++ b/client/client_state.cpp @@ -929,16 +929,23 @@ int CLIENT_STATE::init() { // if Docker not present, notify user // #ifndef ANDROID +#ifdef _WIN32 + const char* url = "https://github.com/BOINC/boinc/wiki/Installing-Docker-on-Windows"; +#elif defined(__APPLE__) + const char* url = "https://github.com/BOINC/boinc/wiki/Installing-Docker-on-Mac"; +#else + const char* url = "https://github.com/BOINC/boinc/wiki/Installing-Docker-on-Linux"; +#endif if (!host_info.have_docker()) { msg_printf(NULL, MSG_INFO, "Some projects require Docker." ); msg_printf(NULL, MSG_INFO, - "To install Docker, visit https://github.com/BOINC/boinc/wiki/Installing-Docker" + "To install Docker, visit %s", url ); NOTICE n; - n.description = "Some projects require Docker. We recommend that you install it. Instructions are here."; - strcpy(n.link, "https://github.com/BOINC/boinc/wiki/Installing-Docker"); + n.description = "Some projects require Docker. We recommend that you install it. Instructions are here."; + strcpy(n.link, url); n.create_time = now; n.arrival_time = now; strcpy(n.category, "client"); diff --git a/client/hostinfo_wsl.cpp b/client/hostinfo_wsl.cpp index 231d6d41d77..444e98e010e 100644 --- a/client/hostinfo_wsl.cpp +++ b/client/hostinfo_wsl.cpp @@ -435,10 +435,10 @@ static void get_docker_compose_version(WSL_CMD& rs, WSL_DISTRO &wd) { // void show_wsl_messages() { int bdv = gstate.host_info.wsl_distros.boinc_distro_version(); - const char *url = "https://github.com/BOINC/boinc/wiki/Installing-Docker"; + const char *url = "https://github.com/BOINC/boinc/wiki/Installing-Docker-on-Windows"; if (bdv == 0) { msg_printf_notice(0, true, url, - "Some BOINC projects require Windows Subsystem for Linux (WSL). Learn how to enable WSL", + "Some BOINC projects require Docker. Learn how to install it", url ); } else if (bdv < gstate.latest_boinc_buda_runner_version) {