docs: def run_via_api(self, container_params=None):
          """
          create a container using this image and run it in background via Docker-py API.
          https://docker-py.readthedocs.io/en/stable/api.html
          Note: If you are using Healthchecks, be aware that support of some options were introduced
          just with version of Docker-py API 1.29
          :param container_params: DockerContainerParameters
          :return: instance of DockerContainer
          """
  
          if not container_params:
              container_params = DockerContainerParameters()
  
          # Host-specific configuration
          host_config = self.d.create_host_config(auto_remove=container_params.remove,
                                                  cap_add=container_params.cap_add,
                                                  cap_drop=container_params.cap_drop,
                                                  devices=container_params.devices,
                                                  dns=container_params.dns,
                                                  group_add=container_params.group_add,
                                                  init=container_params.init,
                                                  ipc_mode=container_params.ipc_mode,
                                                  isolation=container_params.isolation,
                                                  mem_limit=container_params.mem_limit,
                                                  mounts=container_params.mounts,
                                                  pids_limit=container_params.pids_limit,
                                                  privileged=container_params.privileged,
                                                  publish_all_ports=container_params.publish_all_ports,
                                                  port_bindings=container_params.port_mappings,
                                                  read_only=container_params.read_only)
  
          container = self.d.create_container(self.get_id(), command=container_params.command,
                                              detach=True,
                                              hostname=container_params.hostname,
                                              user=container_params.user,
                                              stdin_open=container_params.stdin_open,
                                              tty=container_params.tty,
                                              ports=container_params.exposed_ports,
                                              environment=container_params.env_variables,
                                              volumes=container_params.volumes,
                                              name=container_params.name,
                                              entrypoint=container_params.entrypoint,
                                              working_dir=container_params.working_dir,
                                              host_config=host_config,
                                              mac_address=container_params.mac_address,
                                              labels=container_params.labels,
                                              stop_signal=container_params.stop_signal,
                                              healthcheck=container_params.healthcheck,
                                              runtime=container_params.runtime)
  
          return DockerContainer(self, container['Id'], name=container_params.name)