> For the complete documentation index, see [llms.txt](https://docs.keeper.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.keeper.io/keeperpam/jp/self-managed-keeper/self-managed-keeper-overview/installation/auto-docker-install/service-management.md).

# サービス管理

自動Dockerインストールのサービス管理

### 概要 <a href="#overview" id="overview"></a>

自動Dockerインストールでは、インストールの完了後に、一連のコンテナが自動的に起動します。ボルト、管理コンソール、それらのデータベース、SMTPサーバー経由で配信するメール送信サービス、フロントドアのリバースプロキシ、そしてPAMルーティング層が有効な場合 (デフォルト) は、ルーティングおよびリレーのサービスです。

インストーラは、バンドルを展開したディレクトリ内の `install/` に、`.env` ファイルと `config/` ディレクトリも書き込みます。バンドルの `install/compose.yml` と合わせて、これらがマルチコンテナのデプロイメントを管理する構成ファイルです。さらに変更が必要な場合は、Docker Composeを直接編集して再起動するのではなく、以下の `./smk` コマンドを使用してください。これにより、インストールの所有権ラベルが維持されます。

### サービスの管理 <a href="#managing-the-service" id="managing-the-service"></a>

展開したバンドルのディレクトリ内から、`./smk` コマンドでデプロイメント全体とその基盤となるコンテナを管理します。

| コマンド                           | 説明                                               |
| ------------------------------ | ------------------------------------------------ |
| `./smk up`                     | 選択したすべてのサービスを起動、または構成変更後に調整                      |
| `./smk down`                   | すべてのサービスを停止。破壊的ではなく、インストールのデータは保持される             |
| `./smk status`                 | 稼働中のものを表示                                        |
| `./smk doctor`                 | デプロイメントの各要素が互いに整合しているかを確認                        |
| `./smk version`                | インストール済みビルドの正確なバージョンを確認                          |
| `./smk wizard`                 | ガイド付きのバックアップ、リストア、アップグレードのメニューを開く                |
| `./smk backup --output <path>` | 検証済みのバックアップを取得。取得後、インストールはメンテナンス状態になる            |
| `./smk restore <backup>`       | 検証済みのバックアップからリストア                                |
| `./smk support collect`        | サポートケース用に、機密情報を除去したアーカイブを作成                      |
| `./smk remove`                 | コンテナとDockerボリュームを削除。破壊的な操作のため、`remove` と入力して確認する |
| `./smk help`                   | 使用できるすべてのコマンドを一覧表示                               |

選択したすべてのコアサービスは、ホストの再起動後に自動的に再起動します。明示的に停止したサービスは、停止したままです。

## 保存されるデータ <a href="#stored-data" id="stored-data"></a>

セルフマネージド型Keeperでは、各操作が影響するデータが分けられています。

| データ                                        | 保存場所                                                         | 保持される操作                       |
| ------------------------------------------ | ------------------------------------------------------------ | ----------------------------- |
| データベースと監査イベント                              | Dockerボリューム                                                  | `./smk down`                  |
| 添付ファイルとその他の保存ファイル                          | ホストのディレクトリ (`KEEPER_FILES_PATH`、デフォルトは `install/data/files`) | `./smk down` と `./smk remove` |
| ホスト名、TLS、メール設定、生成されたシークレット、データベースのルートパスワード | 展開したディレクトリ (`install/.env` と `install/config/`)              | コンテナとボリュームの削除                 |

{% hint style="danger" %}
Dockerボリュームを削除すると、ボルトが削除され、元に戻せません。
{% endhint %}

{% hint style="danger" %}
展開したディレクトリを削除すると、自動生成されたシークレットと、アップロードされた添付ファイルの両方が削除されます。
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.keeper.io/keeperpam/jp/self-managed-keeper/self-managed-keeper-overview/installation/auto-docker-install/service-management.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
