> 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/self-managed-keeper/self-managed-keeper-overview/installation/auto-docker-install/upgrading.md). Agents can also search and read this documentation through its [MCP server](https://docs.keeper.io/~gitbook/mcp).

# Upgrading

Upgrading Self-Managed Keeper with the Auto Docker Install method

### Read Before Upgrading to New Version of SMK

Upgrading Self-Managed Keeper is a **planned-downtime** operation, not an in-place update. You prepare a separate, clean target installation, import a verified backup from your current installation into it, validate the result, then switch inbound traffic over to it. Your original installation stays protected and available, and you can switch back to it until you authorize writes on the new installation.

{% hint style="warning" %}
Before you upgrade please contact Keeper Support for a confirmed upgrade path and appropriate package based on your current version.
{% endhint %}

### Update Instructions

**(1) Prepare the new bundle as a separate, unstarted installation**

Extract the new bundle version provided by Keeper into its own directory, separate from your current installation. From that new directory, run:

```bash
./smk --instance <new-instance> install --no-start
```

This prepares the new version without touching your current, running installation. A named instance needs its own bind address (`SMK_BIND_ADDRESS`) so it does not conflict with the current installation.

**(2) Run the guided administrator wizard**

For the normal interactive workflow, run this from the new bundle's directory:

```bash
./smk wizard
```

Choose **Upgrade** at the prompt. The same menu also offers Backup and Restore directly, and you can jump straight to any one of the three with `./smk backup wizard`, `./smk restore wizard`, or `./smk upgrade wizard`.

The wizard shows the selected source and target installation, the Backup it will use, and the public-instance context before doing any protected work. If you don't already have a current backup, it offers to create one from your running installation first. It then imports that backup into the new installation, validates the result, and only switches public traffic over to it after you confirm. Active sessions can end during the switch.

**(3) Verify before enabling writes and accepting**

After the switch, the new installation stays read-only until you authorize writes. Switching back to the original installation is possible only up to this point. After you authorize writes, sign in to the Vault and Admin Console with an existing account, confirm a record decrypts correctly, and, if the PAM routing tier is enabled, confirm a PAM session actually connects. Only then accept the upgrade through the wizard.

### Rollback protection

Your original installation is never removed by the upgrade, so an interrupted or failed upgrade does not take your deployment offline. Keep the original installation and the backup until you're satisfied with the new one. Check:

```bash
./smk upgrade status
./smk cutover status
./smk operations
```

and follow the recovery action each one reports, rather than deleting anything or retrying blindly. See [Troubleshooting](https://docs.keeper.io/keeperpam/self-managed-keeper/self-managed-keeper-overview/troubleshooting.md) if you need further help.


---

# 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/self-managed-keeper/self-managed-keeper-overview/installation/auto-docker-install/upgrading.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.
