R/isInDocker.R

Defines functions isInDocker

Documented in isInDocker

#' Test for docker container
#' 
#' @return boolean
#'
isInDocker <- function(){
    if (file.exists("/.dockerenv")){
        message("I must be running inside a docker container; because the /.dockerenv file exists.")
        return(TRUE)
    }else{
        message("I must NOT be running inside a docker container; there is no /.dockerenv file")
        return(FALSE)
    }
}
IvoryC/shinyBioLockJ documentation built on May 29, 2021, 7:40 a.m.