def remote_createContainer(self, uid, data):
        """ Create a new Container.

            @param uid:         Unique ID which the environment process inside
                                the container needs to login to the Master
                                process.
            @type  uid:         str

            @param data:        Extra data which is used to configure the
                                container.
            @type  data:        dict

            @return:            New Container instance.
            @rtype:             rce.container.RCEContainer
        """
        try:
            nr = self._nrs.pop()
        except __HOLE__:
            raise MaxNumberExceeded('Can not manage any additional container.')

        container = RCEContainer(self, nr, uid, data)
        return container.start().addCallback(lambda _: container)
dataset/ETHPy150Open rapyuta/rce/rce-core/rce/container.py/ContainerClient.remote_createContainer