sevilayerkan / docker-helper

Makes using Docker easier
MIT License
3 stars 1 forks source link

feat: check docker is installed or not #13

Open sevilayerkan opened 1 year ago

sevilayerkan commented 1 year ago

Pseudocode of this function:

check_install() bool *
{
 if(docker is installed){
  return 1
 } else{
  return 0
 }
}

OS difference should be taken into account.

sevilayerkan commented 1 year ago

install() function and isInstalled() function needs to be implemented since they are working together they would be written at the same time

isInstalled()  //This function will also work before app gets started

install(){
    if(isInstalled())
        return
    else
        install docker