labpack/platforms/docker.py
def _validate_install(self):

        ''' a method to validate docker is installed '''

        from subprocess import check_output, STDOUT
        sys_command = 'docker --help'
        try:
            check_output(sys_command, shell=True, stderr=STDOUT).decode('utf-8')
            # call(sys_command, stdout=open(devnull, 'wb'))
        except Exception as err:
            raise Exception('"docker" not installed. GoTo: https://www.docker.com')
    
        return True
 a method to validate docker is installed 
a method to validate docker is installed
a method to validate docker is installed
def _validate_install(self):
        from subprocess import check_output, STDOUT
        sys_command = 'docker --help'
        try:
            check_output(sys_command, shell=True, stderr=STDOUT).decode('utf-8')
        except Exception as err:
            raise Exception('"docker" not installed. GoTo: https://www.docker.com')
        return True
def _validate_install ( self ) : from subprocess import check_output , STDOUT sys_command = 'docker --help' try : check_output ( sys_command , shell = True , stderr = STDOUT ) . decode ( 'utf-8' ) except Exception as err : raise Exception ( '"docker" not installed. GoTo: https://www.docker.com' ) return True
a method to validate docker is installed
a method to validate docker is installed
''' a method to validate docker is installed ''' # call(sys_command, stdout=open(devnull, 'wb'))

self