Skip to content

Commit

Permalink
feat: provide docker url (#305)
Browse files Browse the repository at this point in the history
Provides a handy url to download docker based on your architecture
  • Loading branch information
CjS77 committed Feb 2, 2024
1 parent ee6d9d9 commit 56b74bf
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions cli/src/dashboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,23 @@ impl Actor for Dashboard {
self.event_handle = Some(handle);

if !is_docker_running() {
let msg = "\nThe Docker process is not detected.\nPlease ensure it is installed and running.\n\n'Ctrl Q' \
to quit.";
#[cfg(target_os = "macos")]
let url = "https://docs.docker.com/desktop/install/mac-install/";
#[cfg(target_os = "windows")]
let url = "https://docs.docker.com/desktop/install/windows-install/";
#[cfg(target_os = "linux")]
let url = "https://docs.docker.com/engine/install/ubuntu/";

let msg = format!(
"\nThe Docker process is not detected.\nIs it installed and running?\n\
Download docker at {url}\n\
'Ctrl Q' to quit."
);
if self
.terminal
.as_mut()
.unwrap()
.draw(|f| display_docker_notice(f, "Docker Not Running!", msg))
.draw(|f| display_docker_notice(f, "Docker Not Running!", &msg))
.is_err()
{
println!("{}", msg);
Expand Down

0 comments on commit 56b74bf

Please sign in to comment.