Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

docs(daemon): explain Linux container registration (#11012)

Danila Katalshovd00b457f6ae1
diff --git a/apps/docs/content/docs/daemon-runtimes.fr.mdx b/apps/docs/content/docs/daemon-runtimes.fr.mdx
index 296907b5de..ef6379107d 100644
--- a/apps/docs/content/docs/daemon-runtimes.fr.mdx
+++ b/apps/docs/content/docs/daemon-runtimes.fr.mdx
@@ -61,6 +61,22 @@ Au démarrage, le daemon détecte les outils de codage IA pris en charge présen
Pour démarrer, le daemon a besoin de détecter au moins un outil de codage IA intégré pris en charge. Les méthodes d'installation et les noms des exécutables figurent dans [Installer les outils de codage IA](/install-agent-runtime).
+### Exécuter dans un conteneur Linux [#linux-container]
+
+Installez le CLI Multica et au moins un outil de développement pris en charge dans l’image. Exécutez le conteneur avec un utilisateur non root. Définissez `MULTICA_SERVER_URL` sur l’URL de l’API accessible depuis le conteneur. Montez un jeton d’accès personnel comme secret et transmettez-le à la commande de connexion par l’entrée standard. Remplacez `my-workspace` par le slug de votre espace de travail.
+
+```bash
+multica --profile container login --token < /run/secrets/multica-pat
+multica --profile container workspace switch my-workspace
+exec multica --profile container daemon start --foreground --no-auto-update
+```
+
+Connectez-vous et sélectionnez l’espace de travail lors de l’initialisation du profil. Pour conserver le même runtime dans la durée, montez le répertoire `~/.multica` de l’utilisateur du conteneur sur un stockage persistant accessible en écriture. Ce répertoire contient le jeton d’accès du profil et l’identifiant du daemon. Si le répertoire est perdu lors du remplacement du conteneur, vous devrez vous reconnecter et le daemon enregistrera un nouveau runtime. Les agents affectés au runtime d’origine ne pourront pas récupérer de tâches dans le nouveau conteneur.
+
+Pour conserver les répertoires d’exécution et le cache `.repos` après le remplacement du conteneur, montez la racine des répertoires de travail sur un stockage persistant accessible en écriture. Avec `--profile container`, la racine par défaut est `~/multica_workspaces_container`.
+
+Configurez séparément l’authentification de l’outil de développement. Laissez le gestionnaire du conteneur redémarrer le daemon au premier plan et remplacez l’image pour mettre à jour le CLI.
+
### Démarrage à l'ouverture de session [#autostart]
Un daemon lancé depuis la CLI ne revient pas de lui-même après un redémarrage. Pour qu'il démarre automatiquement, enregistrez le profil courant :
diff --git a/apps/docs/content/docs/daemon-runtimes.ja.mdx b/apps/docs/content/docs/daemon-runtimes.ja.mdx
index cef156c4ef..1e82fa9528 100644
--- a/apps/docs/content/docs/daemon-runtimes.ja.mdx
+++ b/apps/docs/content/docs/daemon-runtimes.ja.mdx
@@ -61,6 +61,22 @@ multica daemon start
デーモンは、組み込みで対応している AI コーディングツールを少なくとも 1 つ検出できないと起動しません。インストール方法と実行コマンド名は [AI コーディングツールのインストール](/install-agent-runtime)を参照してください。
+### Linux コンテナで実行する [#linux-container]
+
+イメージに Multica CLI と対応するコーディングツールを 1 つ以上インストールし、コンテナを非 root ユーザーで実行します。`MULTICA_SERVER_URL` にはコンテナ内からアクセスできる API URL を設定します。個人アクセストークンをシークレットとしてマウントし、標準入力でログインコマンドに渡します。`my-workspace` はワークスペースのスラッグに置き換えてください。
+
+```bash
+multica --profile container login --token < /run/secrets/multica-pat
+multica --profile container workspace switch my-workspace
+exec multica --profile container daemon start --foreground --no-auto-update
+```
+
+プロファイルの初期設定時にログインとワークスペース選択を行います。同じランタイムを長期運用するには、コンテナユーザーの `~/.multica` を書き込み可能な永続ストレージにマウントしてください。このディレクトリにはプロファイルのアクセストークンとデーモン ID が保存されます。コンテナの置き換え時にこのディレクトリが失われると、再ログインが必要になり、デーモンは新しいランタイムを登録します。元のランタイムに割り当てられたエージェントは、新しいコンテナでタスクを受け取れません。
+
+コンテナの置き換え後も実行ディレクトリと `.repos` キャッシュを保持するには、作業ディレクトリのルートを書き込み可能な永続ストレージにマウントしてください。`--profile container` を使用する場合、デフォルトのルートは `~/multica_workspaces_container` です。
+
+コーディングツールの認証は別途設定します。フォアグラウンドのデーモンの再起動はコンテナ管理側に任せ、CLI の更新はイメージの置き換えで行います。
+
### ログイン時の自動起動 [#autostart]
CLI で起動したデーモンは、コンピューターを再起動すると自動では戻りません。自動で起動させるには、現在のプロファイルを登録します。
diff --git a/apps/docs/content/docs/daemon-runtimes.ko.mdx b/apps/docs/content/docs/daemon-runtimes.ko.mdx
index 5db671908a..a05d4b06e4 100644
--- a/apps/docs/content/docs/daemon-runtimes.ko.mdx
+++ b/apps/docs/content/docs/daemon-runtimes.ko.mdx
@@ -61,6 +61,22 @@ multica daemon start
데몬을 시작하려면 기본 지원 AI 코딩 도구를 하나 이상 감지해야 합니다. 설치 방법과 실행 파일 이름은 [AI 코딩 도구 설치](/install-agent-runtime)를 참고하세요.
+### Linux 컨테이너에서 실행 [#linux-container]
+
+이미지에 Multica CLI와 지원되는 코딩 도구를 하나 이상 설치하고 컨테이너를 root가 아닌 사용자로 실행합니다. `MULTICA_SERVER_URL`에는 컨테이너에서 접근할 수 있는 API URL을 설정합니다. 개인 액세스 토큰을 시크릿으로 마운트한 뒤 표준 입력으로 로그인 명령에 전달합니다. `my-workspace`를 워크스페이스 슬러그로 바꿉니다.
+
+```bash
+multica --profile container login --token < /run/secrets/multica-pat
+multica --profile container workspace switch my-workspace
+exec multica --profile container daemon start --foreground --no-auto-update
+```
+
+프로필을 처음 구성할 때 로그인하고 워크스페이스를 선택합니다. 같은 런타임을 장기간 운영하려면 컨테이너 사용자의 `~/.multica`를 쓰기 가능한 영구 스토리지에 마운트해야 합니다. 이 디렉터리에는 프로필의 액세스 토큰과 데몬 ID가 저장됩니다. 컨테이너를 교체할 때 이 디렉터리가 사라지면 다시 로그인해야 하며 데몬은 새 런타임을 등록합니다. 기존 런타임에 할당된 에이전트는 새 컨테이너에서 태스크를 가져갈 수 없습니다.
+
+컨테이너를 교체한 후에도 실행 디렉터리와 `.repos` 캐시를 유지하려면 작업 디렉터리 루트를 쓰기 가능한 영구 스토리지에 마운트합니다. `--profile container`를 사용하면 기본 작업 디렉터리 루트는 `~/multica_workspaces_container`입니다.
+
+코딩 도구 인증은 별도로 설정합니다. 컨테이너 관리자가 포그라운드 데몬을 재시작하도록 하고, CLI는 이미지를 교체해 업데이트합니다.
+
### 로그인 시 자동 시작 [#autostart]
CLI로 시작한 데몬은 컴퓨터를 다시 시작해도 저절로 다시 켜지지 않습니다. 자동으로 시작하게 하려면 현재 프로필을 등록하세요.
diff --git a/apps/docs/content/docs/daemon-runtimes.mdx b/apps/docs/content/docs/daemon-runtimes.mdx
index 319186cf7b..6052008e8f 100644
--- a/apps/docs/content/docs/daemon-runtimes.mdx
+++ b/apps/docs/content/docs/daemon-runtimes.mdx
@@ -61,6 +61,22 @@ On startup, the daemon detects supported AI coding tools on `PATH` and registers
The daemon needs at least one built-in supported AI coding tool detected before it will start. Install methods and executable names are in [Install AI coding tools](/install-agent-runtime).
+### Run in a Linux container [#linux-container]
+
+Install the Multica CLI and at least one supported coding tool in the image. Run the container as a non-root user. Set `MULTICA_SERVER_URL` to the API URL reachable from inside the container. Mount a personal access token as a secret and pass it to login on standard input. Replace `my-workspace` with your workspace slug.
+
+```bash
+multica --profile container login --token < /run/secrets/multica-pat
+multica --profile container workspace switch my-workspace
+exec multica --profile container daemon start --foreground --no-auto-update
+```
+
+Run login and workspace selection when provisioning the profile. For a long-lived runtime, mount the container user's `~/.multica` on writable persistent storage. It stores the profile's access token and the daemon ID. If the directory is lost when the container is replaced, you must log in again and the daemon registers a new runtime. Agents assigned to the original runtime cannot pick up tasks in the replacement container.
+
+To preserve run directories and the `.repos` cache across container replacements, mount the workspaces root on writable persistent storage. With `--profile container`, the default workspaces root is `~/multica_workspaces_container`.
+
+Configure the coding tool's own authentication separately. Let the container supervisor restart the foreground daemon, and upgrade the CLI by replacing the image.
+
### Start at login [#autostart]
A daemon started from the CLI does not come back on its own after a reboot. To have it start automatically, register the current profile:
diff --git a/apps/docs/content/docs/daemon-runtimes.zh-Hant.mdx b/apps/docs/content/docs/daemon-runtimes.zh-Hant.mdx
index 1bf875caef..aba22d0af5 100644
--- a/apps/docs/content/docs/daemon-runtimes.zh-Hant.mdx
+++ b/apps/docs/content/docs/daemon-runtimes.zh-Hant.mdx
@@ -61,6 +61,22 @@ multica daemon start
守護程序至少需要檢測到一款內建支援的 AI 程式設計工具才能啟動。安裝方法和可執行檔名見[安裝 AI 程式設計工具](/install-agent-runtime)。
+### 在 Linux 容器中執行 [#linux-container]
+
+在映像檔中安裝 Multica CLI 和至少一種支援的程式開發工具。以非 root 使用者執行容器。將 `MULTICA_SERVER_URL` 設為容器內可存取的 API 網址。將個人存取權杖以密鑰掛載,並透過標準輸入傳給登入指令。將 `my-workspace` 換成你的工作區 slug。
+
+```bash
+multica --profile container login --token < /run/secrets/multica-pat
+multica --profile container workspace switch my-workspace
+exec multica --profile container daemon start --foreground --no-auto-update
+```
+
+初始化 profile 時執行登入及工作區選擇。若要在更換容器後繼續使用同一個執行時,必須將容器使用者的 `~/.multica` 掛載到可寫入的持久儲存空間。此目錄儲存 profile 的存取權杖及守護程序 ID。若更換容器時遺失此目錄,你需要重新登入,守護程序也會註冊新的執行時。指派給原執行時的 AI 代理無法在新容器中領取任務。
+
+將工作目錄根路徑掛載到可寫入的持久儲存空間,即可在更換容器後保留執行目錄及 `.repos` 快取。使用 `--profile container` 時,預設的工作目錄根路徑是 `~/multica_workspaces_container`。
+
+另行設定程式開發工具的驗證。由容器管理器重新啟動前景守護程序,並透過更換映像檔升級 CLI。
+
### 開機自啟 [#autostart]
用 CLI 啟動的守護程序預設不會隨電腦重啟自動恢復。需要的話,為當前 profile 登記開機自啟:
diff --git a/apps/docs/content/docs/daemon-runtimes.zh.mdx b/apps/docs/content/docs/daemon-runtimes.zh.mdx
index 73e0bb174d..1078505663 100644
--- a/apps/docs/content/docs/daemon-runtimes.zh.mdx
+++ b/apps/docs/content/docs/daemon-runtimes.zh.mdx
@@ -61,6 +61,22 @@ multica daemon start
守护进程至少需要检测到一款内置支持的 AI 编程工具才能启动。安装方法和可执行文件名见[安装 AI 编程工具](/install-agent-runtime)。
+### 在 Linux 容器中运行 [#linux-container]
+
+在镜像中安装 Multica CLI 和至少一种受支持的编程工具。以非 root 用户运行容器。将 `MULTICA_SERVER_URL` 设置为容器内可访问的 API 地址。将个人访问令牌作为密钥挂载,并通过标准输入传给登录命令。将 `my-workspace` 替换为你的工作区 slug。
+
+```bash
+multica --profile container login --token < /run/secrets/multica-pat
+multica --profile container workspace switch my-workspace
+exec multica --profile container daemon start --foreground --no-auto-update
+```
+
+初始化 profile 时执行登录和工作区选择。要在替换容器后继续使用同一个运行时,必须将容器用户的 `~/.multica` 挂载到可写的持久存储上。此目录保存 profile 的访问令牌和守护进程 ID。如果替换容器时丢失此目录,你需要重新登录,守护进程也会注册一个新的运行时。分配到原运行时的智能体无法在新容器中领取任务。
+
+将工作目录根路径挂载到可写的持久存储上,即可在替换容器后保留运行目录和 `.repos` 缓存。使用 `--profile container` 时,默认的工作目录根路径是 `~/multica_workspaces_container`。
+
+单独配置编程工具的认证。由容器管理器重启前台守护程序,并通过替换镜像升级 CLI。
+
### 开机自启 [#autostart]
用 CLI 启动的守护进程默认不会随电脑重启自动恢复。需要的话,为当前 profile 登记开机自启: