> For the complete documentation index, see [llms.txt](https://docs.netmap.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.netmap.dev/install-and-upgrade/upgrading.md). Agents can also search and read this documentation through its [MCP server](https://docs.netmap.dev/~gitbook/mcp).

# Upgrading

Back up a NetMap instance, pull a new image, and verify that it is healthy.

An upgrade replaces the running NetMap image with a newer published release, then starts the container so it can apply any database migrations and serve the new application. Your data stays in the bind-mounted data directory, and your Compose and environment files stay on the host.

Read the release notes first, and take a backup you have confirmed you can restore, before you pull a new image. Migrations run forward when the new image starts. You cannot assume a database can be downgraded, so a compatible backup is the rollback path.

## Before You Start

1. Read the [application changelog](https://github.com/xoriin/netmap/blob/main/CHANGELOG.md) for the version you are moving to.
2. Back up `data/`, environment files, and Compose files. See [Backup And Restore](https://docs.netmap.dev/operations/backup-and-restore.md).
3. Confirm you can restore that backup.

{% hint style="warning" %}
Do not skip the backup. Rollback requires a compatible database backup. Do not assume database migrations can be downgraded.
{% endhint %}

## Upgrade

```bash
cd <install-dir>
docker compose pull
docker compose up -d
curl --fail http://127.0.0.1:8080/api/health
```

## Verify

* Sign in.
* Check Admin diagnostics.
* Check Inventory, Topology, Monitoring, IPAM, and Security if those features are in use.
* Confirm scheduled discovery, alerts, syslog, and backups are running if configured.

## Version Notes

### 1.8.2: Container User

New installs run as user and group `1000:1000`. An existing install keeps running as whoever already owns its data, so upgrading never changes file ownership:

* With `PUID` and `PGID` set, NetMap runs as those IDs, as before.
* Without them, NetMap runs as the owner of `data/netmap.db`. Installs from before 1.8.2 ran as `100:101`, so they keep that, and the log says so at start-up.

Nothing needs changing to upgrade, and your Compose file can stay as it is. To move an older install to `1000:1000`, either set `PUID: 1000` and `PGID: 1000` (NetMap re-owns the data directory at the next start), or stop NetMap and run `sudo chown -R 1000:1000 <install-dir>/data` before starting it again.

## Next Steps

If the health check fails or the UI does not load, start with [Common Issues](https://docs.netmap.dev/index-3/common-issues.md) and [Container Problems](https://docs.netmap.dev/index-3/container-problems.md).


---

# 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.netmap.dev/install-and-upgrade/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.
