(self, container_id)
return exec_path
Prepare execution of the container
        To be called by the run() method of the actual ExecutionEngine
Prepare execution of the container
        To be called by the run() method of the actual ExecutionEngine
Prepare execution of the container To be called by the run () method of the actual ExecutionEngine
def _run_init(self, container_id):
        """Prepare execution of the container
        To be called by the run() method of the actual ExecutionEngine
        """
        try:
            (container_dir, dummy) = \
                self._run_load_metadata(container_id)
        except (ValueError, TypeError):
            return ""

        if not (container_dir or Config.conf['location']):
            return ""

        self._run_env_cmdoptions()

        if Config.conf['location']:               # using specific root tree
            self.container_root = Config.conf['location']
        else:
            self.container_root = container_dir + "/ROOT"

        # container name(s) from container_id
        self.container_names = self.localrepo.get_container_name(container_id)
        self.container_id = container_id
        self.container_dir = container_dir

        # execution mode
        #self.exec_mode = ExecutionMode(self.localrepo, self.container_id)

        # check if exposing privileged ports
        self._check_exposed_ports()

        # which user to use inside the container and setup its account
        if not self._setup_container_user(self.opt["user"]):
            return ""

        # setup mountpoints
        self.mountp = MountPoint(self.localrepo, self.container_id)

        if not self._set_volume_bindings():
            return ""

        if not self._check_paths():
            return ""

        exec_path = self._check_executable()

        return exec_path
def _run_init ( self , container_id ) : try : ( container_dir , dummy ) = self . _run_load_metadata ( container_id ) except ( ValueError , TypeError ) : return "" if not ( container_dir or Config . conf [ 'location' ] ) : return "" self . _run_env_cmdoptions ( ) if Config . conf [ 'location' ] : # using specific root tree self . container_root = Config . conf [ 'location' ] else : self . container_root = container_dir + "/ROOT" # container name(s) from container_id self . container_names = self . localrepo . get_container_name ( container_id ) self . container_id = container_id self . container_dir = container_dir # execution mode #self.exec_mode = ExecutionMode(self.localrepo, self.container_id) # check if exposing privileged ports self . _check_exposed_ports ( ) # which user to use inside the container and setup its account if not self . _setup_container_user ( self . opt [ "user" ] ) : return "" # setup mountpoints self . mountp = MountPoint ( self . localrepo , self . container_id ) if not self . _set_volume_bindings ( ) : return "" if not self . _check_paths ( ) : return "" exec_path = self . _check_executable ( ) return exec_path