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

        '''
            a method to list the local active docker containers 
            
        :return: list of dictionaries with active container fields

        [{
            'CREATED': '6 minutes ago',
            'NAMES': 'flask',
            'PORTS': '0.0.0.0:5000->5000/tcp',
            'CONTAINER ID': '38eb0bbeb2e5',
            'STATUS': 'Up 6 minutes',
            'COMMAND': '"gunicorn --chdir ser"',
            'IMAGE': 'rc42/flaskserver'
        }]
        '''

        sys_command = 'docker ps -a'
        sys_output = self.command(sys_command)
        container_list = self._ps(sys_output)

        return container_list

            a method to list the local active docker containers 
            
        :return: list of dictionaries with active container fields

        [{
            'CREATED': '6 minutes ago',
            'NAMES': 'flask',
            'PORTS': '0.0.0.0:5000->5000/tcp',
            'CONTAINER ID': '38eb0bbeb2e5',
            'STATUS': 'Up 6 minutes',
            'COMMAND': '"gunicorn --chdir ser"',
            'IMAGE': 'rc42/flaskserver'
        }]
        
a method to list the local active docker containers
a method to list the local active docker containers
def ps(self):
        sys_command = 'docker ps -a'
        sys_output = self.command(sys_command)
        container_list = self._ps(sys_output)
        return container_list
def ps ( self ) : sys_command = 'docker ps -a' sys_output = self . command ( sys_command ) container_list = self . _ps ( sys_output ) return container_list
a method to list the local active docker containers
a method to list the local active docker containers
'''
            a method to list the local active docker containers 
            
        :return: list of dictionaries with active container fields

        [{
            'CREATED': '6 minutes ago',
            'NAMES': 'flask',
            'PORTS': '0.0.0.0:5000->5000/tcp',
            'CONTAINER ID': '38eb0bbeb2e5',
            'STATUS': 'Up 6 minutes',
            'COMMAND': '"gunicorn --chdir ser"',
            'IMAGE': 'rc42/flaskserver'
        }]
        '''
list of dictionaries with active container fields
[{
'CREATED': '6 minutes ago',
'NAMES': 'flask',
'PORTS': '0.0.0.0:5000->5000/tcp',
'CONTAINER ID': '38eb0bbeb2e5',
'STATUS': 'Up 6 minutes',
'COMMAND': '"gunicorn --chdir ser"',
'IMAGE': 'rc42/flaskserver'
}]
list of dictionaries with active container fields [ { ' CREATED ' : ' 6 minutes ago ' ' NAMES ' : ' flask ' ' PORTS ' : ' 0 . 0 . 0 . 0 : 5000 - > 5000 / tcp ' ' CONTAINER ID ' : ' 38eb0bbeb2e5 ' ' STATUS ' : ' Up 6 minutes ' ' COMMAND ' : ' " gunicorn -- chdir ser " ' ' IMAGE ' : ' rc42 / flaskserver ' } ]
self