code: def run_in_container(command, container_dir):
      
      container_p = local.path(container_dir)
      with local.cwd(container_p):
          uchrt = uchroot.with_mounts()
          uchrt = uchrt["-E", "-A", "-u", "0", "-g", "0", "-C", "-w", "/", "-r",
                        container_p]
          uchrt = uchrt["--"]
  
          cmd_path = container_p / command[0].lstrip('/')
          if not cmd_path.exists():
              LOG.error("The command does not exist inside the container! %s",
                        cmd_path)
              return
  
          cmd = uchrt[command]
          return cmd & FG
docs: Run a given command inside a container.
  
      Mounts a directory as a container at the given mountpoint and tries to run
      the given command inside the new container.