def __init__(self, args=None):
        """Init the plugin."""
        super(Plugin, self).__init__(args=args,
                                     items_history_list=items_history_list)

        # The plgin can be disable using: args.disable_docker
        self.args = args

        # We want to display the stat in the curse interface
        self.display_curse = True

        # Init the Docker API
        self.docker_client = self.connect()

        # Dict of thread (to grab stats asynchroniously, one thread is created by container)
        # key: Container Id
        # value: instance of ThreadDockerGrabber
        self.thread_list = {}
def __init__ ( self , args = None ) : super ( Plugin , self ) . __init__ ( args = args , items_history_list = items_history_list ) self . args = args self . display_curse = True self . docker_client = self . connect ( ) self . thread_list = { }
Init the plugin.