def onStart(self, event):
        """
        Display the environment of a started container
        """
        c = event.container
        print '+' * 5, 'started:', c
        kv = lambda s: s.split('=', 1)
        env = {k: v for (k, v) in (kv(s) for s in c.attrs['Config']['Env'])}
        print env
def onStart ( self , event ) : c = event . container print '+' * 5 , 'started:' , c kv = lambda s : s . split ( '=' , 1 ) env = { k : v for ( k , v ) in ( kv ( s ) for s in c . attrs [ 'Config' ] [ 'Env' ] ) } print env
Display the environment of a started container