code: def run(self, image, command=None, create_kwargs=None, start_kwargs=None,
              volume_bindings=None, privileged=None):
          
          logger.info("creating container from image '%s' and running it", image)
          create_kwargs = create_kwargs or {}
  
          if 'host_config' not in create_kwargs:
              conf = {}
              if volume_bindings is not None:
                  conf['binds'] = volume_bindings
  
              if privileged is not None:
                  conf['privileged'] = privileged
  
              create_kwargs['host_config'] = self.d.create_host_config(**conf)
  
          start_kwargs = start_kwargs or {}
          logger.debug("image = '%s', command = '%s', create_kwargs = '%s', start_kwargs = '%s'",
                       image, command, create_kwargs, start_kwargs)
          if isinstance(image, ImageName):
              image = image.to_str()
          container_dict = self.d.create_container(image, command=command, **create_kwargs)
          container_id = container_dict['Id']
          logger.debug("container_id = '%s'", container_id)
          self.d.start(container_id, **start_kwargs)  # returns None
          return container_id
docs: create container from provided image and start it
  
          for more info, see documentation of REST API calls:
           * containers/{}/start
           * container/create
  
          :param image: ImageName or string, name or id of the image
          :param command: str
          :param create_kwargs: dict, kwargs for docker.create_container
          :param start_kwargs: dict, kwargs for docker.start
          :return: str, container id