(self, dockerAddr=None, dockerPort=None, dockerSocket=None,
            path='', reactor=reactor, config=None)
A docker proxy resource which knows how to connect to real Docker
        daemon either via socket (dockerSocket specified) or address + port for
        TCP connection (dockerAddr + dockerPort specified).
A docker proxy resource which knows how to connect to real Docker
        daemon either via socket (dockerSocket specified) or address + port for
        TCP connection (dockerAddr + dockerPort specified).
A docker proxy resource which knows how to connect to real Docker daemon either via socket ( dockerSocket specified ) or address + port for TCP connection ( dockerAddr + dockerPort specified ) .
def __init__(self, dockerAddr=None, dockerPort=None, dockerSocket=None,
            path='', reactor=reactor, config=None):
        """
        A docker proxy resource which knows how to connect to real Docker
        daemon either via socket (dockerSocket specified) or address + port for
        TCP connection (dockerAddr + dockerPort specified).
        """
        if config is None:
            # Try to get the configuration from the default place on the
            # filesystem.
            self.config = PluginConfiguration()
        else:
            self.config = config
        self.config.read_and_parse()
        self.parser = EndpointParser(self.config)
        Resource.__init__(self)
        self.host = dockerAddr
        self.port = dockerPort
        self.socket = dockerSocket
        self.path = path
        self.reactor = reactor
        proxy.ReverseProxyResource.__init__(self, dockerAddr, dockerPort, path, reactor) # NB dockerAddr is not actually used
        self.agent = Agent(reactor) # no connectionpool
        self.client = HTTPClient(self.agent)
def __init__ ( self , dockerAddr = None , dockerPort = None , dockerSocket = None , path = '' , reactor = reactor , config = None ) : if config is None : # Try to get the configuration from the default place on the # filesystem. self . config = PluginConfiguration ( ) else : self . config = config self . config . read_and_parse ( ) self . parser = EndpointParser ( self . config ) Resource . __init__ ( self ) self . host = dockerAddr self . port = dockerPort self . socket = dockerSocket self . path = path self . reactor = reactor proxy . ReverseProxyResource . __init__ ( self , dockerAddr , dockerPort , path , reactor ) # NB dockerAddr is not actually used self . agent = Agent ( reactor ) # no connectionpool self . client = HTTPClient ( self . agent )