Upgrading Metabase on Docker

A practical plan for moving a containerized Metabase to a newer version by pinning an image tag, backing up the application database and checking migrations. It also explains which edition image to use and how to roll back.

On this page

Upgrading Metabase on Docker without guessing at migrations

A containerized Metabase is upgraded by pinning a newer image tag, backing up the application database first, and watching the startup logs while Metabase applies its own schema migrations. The work is a controlled image swap with checks at each step, not a rebuild. Teams usually start this work because the current version is approaching its end-of-life date or because a feature they need only ships in a newer release. Check the Metabase version support page for the end-of-life date of your current release before you schedule anything, since LTS releases are supported for 14 months and non-LTS releases usually reach end of life after 2 months.

Metabase runs application database migrations automatically on startup, so the new container does the schema changes the moment it boots. That is why the application database backup comes before the image change, and why it is the step you cannot skip. Metabase's upgrade guidance also says that very old versions must be stepped through release by release: from any version older than 40, you move to each intermediate release in order rather than jumping straight to current. Confirm the exact upgrade path for your starting version against the upgrade documentation, and record the version you are on now so the rollback target is clear.

Pin the target tag explicitly, such as the specific version number, rather than latest, so a container restart cannot pull a different release. Watch the migration output in the container logs from first start until Metabase reports it is ready, and treat any error during migration as a stop condition, not a retry. Keep the Open Source image (metabase/metabase) and the Pro or Enterprise image (metabase/metabase-enterprise) separate in your deployment definitions, so an upgrade never switches editions by accident. Rollback means restoring the pre-upgrade backup, so confirm you can restore it into a test database before you upgrade production.

What changes between releases and what it means for your upgrade

This table compares the release and packaging facts that affect a Docker upgrade and tells you what to do about each one. Read it before choosing a target tag, since the image name, support window and migration behavior all shape the plan. Confirm any version-specific behavior in the release notes for your target version before you start.

ChangeImpact on your upgradeAction needed
Open Source and Enterprise images are separateThe Open Source edition publishes as metabase/metabase, while Pro and Enterprise publish as metabase/metabase-enterprise. Pulling the wrong image changes which features run.Confirm the image name matches your license before you pin a tag, and keep the two images out of the same deployment definition.
Application database migrations run on startupMetabase performs application database schema changes automatically when the new container starts, so a bad migration takes effect immediately.Back up the application database before swapping the tag, and watch the container logs until the migrations finish.
Single-node rule for major upgradesMetabase's documentation recommends reducing a cluster to one node for major upgrades because of a migration lock. Running several containers at once can stall or conflict during migration.Stop extra containers or scale to one replica for the major upgrade, then scale back out after the logs show a healthy start.
LTS support window of 14 monthsLTS releases receive bug fixes and security updates for 14 months, which gives a longer window between major upgrades.Check the end-of-life date for your current LTS line and schedule the next upgrade before it passes.
Non-LTS support window of about 2 monthsNon-LTS releases usually reach end of life after about 2 months, so a container left on a monthly tag stops receiving fixes quickly.If you run a monthly release, plan a move to the next release or an LTS line on a fixed schedule.
Metabase 64 LTS release and end of lifeMetabase 64 was published on 16 September 2026 and reaches end of life on 1 December 2027, which sets the support horizon for that line.Confirm the end-of-life date on the version support page and record it in your upgrade calendar.
Metabase 65 releaseMetabase 65 was released on 12 October 2026 as a monthly release, which follows the shorter support window.Review the release notes for 65 and decide whether your instance should move to it or stay on the LTS line.
Changes in each target versionEach release can add, remove or change settings, configuration keys and migration steps beyond the facts listed here.Read the release notes for every version between your current tag and your target before pinning the new image.

Preparing the container, database and test environment

Most failed Metabase upgrades trace back to work skipped before the image tag changed. The items below establish what is running today, what must be recoverable, and where the new version can be tested before production. Complete them in order, and record the answers in the change ticket so the rollback path is written down before the window opens.

Current application database backup

Take a fresh backup of the application database before anything else changes. Metabase stores saved questions, dashboards, users, permissions and settings there, and its migrations run automatically at startup. The docs recommend PostgreSQL for production, and MySQL 8.4.0 or MariaDB 10.6.0 and later with utf8mb4 are also supported. Confirm the backup restores cleanly by checking that you can read it back, not only that the file exists. Store the backup outside the container host.

Application database docs

Current image tag and environment

Record the exact image tag currently running, not latest, and the full set of environment variables passed to the container. Include MB_DB_TYPE, MB_DB_CONNECTION_URI, MB_ENCRYPTION_SECRET_KEY, JAVA_OPTS and any site URL or email settings. Capture this from the running container with docker inspect so the inventory reflects reality rather than the compose file someone last edited. This list is also your reference for the rollback image.

Edition image in use

Confirm whether the running container is metabase/metabase (Open Source) or metabase/metabase-enterprise (Pro and Enterprise). Metabase publishes these as separate images, and the new tag must come from the same one. Mixing editions on a restart can change which features are enabled and can leave the instance in a state that is hard to reverse. Check the image name and the tag together, and write both into the change record.

Running Metabase on Docker

Staging copy restored from backup

Restore the production backup into a separate application database and start the target image against it on an isolated network. Use a copy of the production data source configuration, not the live warehouse credentials, so test queries cannot affect production sources. Watch the startup log through the migrations and confirm that existing dashboards, sign-in and a sample of saved questions still work. Staging proves the procedure and the migration path, but it does not replace the production backup.

Plugins and custom drivers

List every file mounted into the container, such as custom database drivers, plugins or certificates, and note the path and the mount source. A driver built for one Metabase version may not load on the next, and a missing mount can stop a data source from connecting after the restart. Ask the vendor or driver author whether a new version exists for the target release, and test each mounted file in staging before the production window.

Maintenance window and rollback owner

Name one person who can start the rollback and one who decides whether to roll back, and agree the window in which users will see downtime. Metabase upgrades run application database migrations on startup, so a failed migration is a database problem as much as a container problem. Decide in advance which backup is restored, who confirms the restore is complete, and how users are told that content created during the window may be lost.

The Docker upgrade sequence, step by step

This sequence takes a containerized Metabase from its current tag to a pinned target version with a verified application database backup, observed migrations and a checked working instance before traffic returns.

  1. Record the current tag and edition

    Before touching anything, the operator records the running image tag, the edition in use (the metabase/metabase image for Open Source or the metabase/metabase-enterprise image for Pro and Enterprise), the application database type and host, and the Metabase version shown in the admin settings. Write these down in the change record alongside the target tag. The step is done when someone other than the operator can read the record and identify exactly what is running today. Rollback checkpoint: this record is what tells you which image and database state to return to if the upgrade fails.

  2. Announce a window and pause writes

    Tell users that Metabase will be unavailable for the upgrade window, and stop anything that writes to the application database, such as scheduled jobs you manage outside Metabase or automation that edits questions, collections or permissions through the API. Confirm with the team who owns the platform that no one is mid-edit. Decide how long the window is with your own change process, because the researched facts do not give a duration. The step is done when the change owner has confirmed the window and the write freeze in writing. Rollback checkpoint: nothing has changed yet, so stopping here costs nothing.

  3. Back up the application database

    Take a backup of the application database while Metabase is stopped or idle, using the tooling of your database platform, for example a logical dump or a snapshot. Metabase's upgrade guidance recommends backing up the application database first. Store the backup somewhere separate from the host, and record its identifier, size and timestamp. Confirm the backup is restorable by checking that the file or snapshot exists and is not empty, and where your process allows, restoring it to a scratch database. The step is done when the restorable backup is recorded. Rollback checkpoint: this backup is the recommended rollback path, so do not proceed without it.

  4. Pin the new specific image tag

    Edit the deployment definition, such as the Compose file or the orchestrator manifest, so the image reference names the exact target version tag and not latest. Metabase's Elastic Beanstalk guide advises using a specific version number for the image tag for the same reason: a fixed tag makes the upgrade deliberate and makes rollback a known change. Check the version support page to confirm the target is a supported release for your plan. Keep the edition correct: Open Source uses the metabase/metabase image and paid editions use metabase/metabase-enterprise. The step is done when the change is committed and the rendered configuration shows the pinned tag. Rollback checkpoint: reverting this single line returns the image reference to the previous tag.

  5. Start the container and watch migrations

    Start the new container and follow its logs from the first line. Metabase runs application database migrations automatically on startup, so the logs show migration progress and any errors before the web server accepts traffic. Look for migration steps completing in order and for a final line indicating the server has started. Treat any stack trace, repeated restart, or failed changeset as a stop condition. Do not restart the container in a loop to force progress, because interrupted migrations are harder to recover from. The step is done when the logs show a clean startup. Rollback checkpoint: if migrations fail, stop the container, restore the pre-upgrade backup and return the image tag to the previous value.

  6. Verify login, connections and content

    Open the instance and sign in with a test administrator account and a standard user account, including your SSO path if one is configured. Confirm that the version shown matches the pinned tag, that the connected data sources respond to a sync or a simple query, and that a sample of saved questions and dashboards across several collections loads and returns results. Keep the sample list in the change record so the same checks can be repeated. The step is done when every check in the list passes and is recorded. Rollback checkpoint: a failed check on content or data access is a reason to roll back to the backup, not to patch around it in production.

  7. Release traffic and record the outcome

    Once verification passes, return the instance to normal use, re-enable any scheduled jobs or automation you paused, and tell users the window has closed. Watch the logs and the application for errors over the first period of normal use, and record the final tag, the backup identifier and the verification results in the change record. Keep the pre-upgrade backup until your retention process says it can be released. If the instance runs behind a load balancer or in a cluster, bring nodes back in step with your own process and confirm each one serves the same version. The step is done when the change record is closed and the backup is retained. Rollback checkpoint: after release, rolling back means restoring the backup, which discards content created after the upgrade, so decide the rollback threshold before traffic returns.

Reading migration logs and knowing when to stop

The migration runs on its own when the container starts, so the logs are the only reliable record of whether it is progressing. After you swap the image tag, follow the container output from the first line through to the point where Metabase reports that it is listening for requests. Look for the migration messages that name the application database changesets, errors that stop the JVM or the application from starting (such as a failed connection to the application database, a missing or wrong MB_DB_TYPE or MB_DB_CONNECTION_URI value, or an exception thrown during a changeset), and any repeated restart loop from the orchestrator. Treat an error that appears during migration as a failed upgrade, not as a warning to ignore. Before the upgrade, confirm the exact log wording and the expected sequence for your target version in the upgrading Metabase documentation, because message text changes between releases and you need a known good reference to compare against.

In a clustered deployment, a migration that appears to hang may be waiting on the migration lock rather than failing. Metabase's documentation recommends reducing a cluster to a single node for major upgrades because only one instance should run the migration at a time. If a second node keeps logging that it is waiting, or no node reports progress for a long period, check the application database for the lock state and confirm that only one container is running the migration. Do not kill containers or force a restart while a changeset is still executing, since an interrupted migration can leave the application database partly changed. Set a time limit before the upgrade starts, agreed with the people who own the service, and record what you will check at that point (log output, database lock state, container status) so the decision to stop is made from evidence rather than from how long the wait feels.

Decide in advance what evidence means stop, and what the rollback path is. Stop and roll back when the logs show a migration error that is not resolved by a documented fix, when the application does not reach a listening state within your agreed window, or when the lock is held and cannot be explained. The rollback path depends on the backup you took before the upgrade: restoring the pre-upgrade application database backup is the documented recommendation, and running the migrate down command with the newer JAR is the alternative. Confirm which of these you will use and rehearse the restore on a copy of the environment before you need it, because the choice determines what happens to content created after the upgrade.

Keeping Open Source and Enterprise images apart

Organizations that run the free edition pull the metabase/metabase image from Docker Hub. The Open Source edition is released under the AGPL, as set out in the repository's LICENSE-AGPL.txt file, and it does not include SSO, row and column level permissions, or usage analytics and auditing. Those features are part of the paid plans, so an Open Source deployment should not be configured as if they were available.

  • Image name: Use metabase/metabase in your compose file or orchestrator manifest, with a fixed version tag.
  • Feature scope: Plan access control around Open Source features only, and confirm that your identity needs are met by Google sign-in or LDAP.
  • Pinned tags: Record the exact tag in version control so that every upgrade is a reviewed change.
  • Backups: Keep application database backups labeled with the image tag that wrote them.
  • Licensing record: Keep a note of the AGPL terms in your software inventory for the open source component.

Before pinning, confirm with your Metabase account or license records that you are running the Open Source edition, not a paid plan image.

What makes a Docker upgrade take longer

This table lists the factors that stretch a containerized Metabase upgrade beyond a simple image tag swap, with why each matters and what to check before the change window. Read each row against your own instance: the drivers that apply most are usually the database size, node count and any custom image layers. Migration time depends on your environment, so confirm it on a staging copy rather than estimating it from production.

DriverWhy it mattersWhat to check
Application database size and migration timeMetabase runs application database migrations automatically on startup, so a larger database generally means a longer wait before the new container serves users.Measure the application database size, run the upgrade on a restored copy in staging and time the startup in the container logs.
Number of nodes and the single-node ruleThe docs recommend reducing a cluster to a single node for major upgrades because of a migration lock, and extra containers can compete for that lock.Count running containers behind the load balancer and plan to scale to one node for the major step, then scale back out.
Custom plugins or drivers in the imageMounted or baked-in drivers must match the target version, and an incompatible plugin can block startup or force a rebuild of the image.List every plugin or driver file, confirm each has a build for the target version and keep the image layer definition under version control.
Reverse proxy and orchestrator timeoutsA proxy health check or orchestrator liveness probe that fires during migrations can restart the container mid-migration and leave the database in a partial state.Set startup probes or grace periods long enough for the migration, and confirm the proxy does not route traffic to a container that is still migrating.
SSO and embedding configurationIdentity settings, redirect URLs, embed secrets and signing keys can change behavior between versions, so sign-in and embeds may break even when the upgrade completes.Retest SSO sign-in, group mapping, guest and SSO-based embeds and any public links in staging before the production change.
Plan tier and image editionOpen Source and Pro or Enterprise use different images (metabase/metabase and metabase/metabase-enterprise), so switching images by mistake adds a second change to the upgrade.Confirm the edition in use, pin the matching image name and tag, and confirm that paid features are licensed before the upgrade.
Started on H2 and migrated with load-from-h2If the instance was moved from H2, the load-from-h2 command must have been run with the same Metabase version that last updated the H2 file, and version drift can complicate later upgrades.Find the Metabase version that last wrote the original H2 file, confirm the migration record and back up the PostgreSQL or MySQL database before upgrading.
Backup and rollback readinessA verified application database backup is the recommended rollback path, and without one a failed migration can take much longer to recover from.Confirm a recent backup exists, test a restore into a separate database and record the exact image tags so you can roll back quickly.

How the backup, image swap and rollback paths connect

The diagram starts with the running container and the application database backup, which must exist before anything changes. The team then pins the new image tag and starts the container, which runs migrations automatically on startup. The checks step decides the outcome: if they pass, the upgrade is complete, and if they fail, the team restores the backup and restarts the previous tag. Running migrate down with the newer JAR is shown as the alternative path.

Backup, tag pin, migration and the two rollback paths for a Docker upgrade.

Questions teams ask before upgrading Metabase on Docker

What does it cost to upgrade Metabase on Docker?

The software itself is free under the AGPL for the Open Source edition, so the cost is the labor to plan, back up, test and verify the upgrade, plus the staging environment and any maintenance window you need. Your internal team pays for its own time. If you hire a partner, the fee follows a written scope that lists the instances, the source and target versions, the backup method and the testing you want. Ask any quote to separate one-time work (the first upgrade, runbook, rollback test) from recurring work (patch cycles, retainers). Costs rise with the number of instances, the age of the starting version and the amount of custom configuration. Note that Metabase's paid plans are priced separately, and an upgrade does not change your plan.

How long does a Metabase Docker upgrade take?

Duration depends on how far the instance is behind, how large the application database is and how many environments you must test. A single-step upgrade on one container with a small application database is mostly planning and verification time, while a multi-step upgrade from an old release is longer because Metabase's upgrading guidance asks you to move release by release from versions older than 40. The migrations themselves run automatically at startup, so the time you control is in preparation and in watching the logs. No fixed duration is supplied here, so ask any provider to estimate the work from your current version, your database size and your test scope.

What must our team provide before an upgrade starts?

You need four things before work begins:

  • Database access: credentials and network paths to the application database (PostgreSQL, MySQL or MariaDB) so the backup can run and the migration can be checked.
  • Backup rights: permission to take and store a full application database dump, and to restore it into a test environment.
  • A staging copy: a non-production Metabase container connected to a copy of the application database and a representative data source, so migrations and dashboards can be tested first.
  • A window: an agreed period when users are told the instance may be unavailable, and a named owner who can approve the cut-over or the rollback.

Also confirm the current image tag, the target tag and any custom environment variables, since these shape the runbook.

Can our internal team upgrade Metabase on Docker alone?

Yes, a team with Docker and database administration skills can do a single-node upgrade by following the official documentation. The steps are to back up the application database, change the image tag to a specific version, start the new container and watch the logs for migration output. The harder parts are planning the release path, testing dashboards and permissions after the change, and writing a rollback plan that has been rehearsed. Teams that lack a staging environment, or that run several instances, often find that the preparation takes longer than the upgrade itself. A partner can take that preparation off your team's hands under a fixed scope, while your team keeps ownership of production approvals.

Should we follow the LTS line or monthly releases?

Choose based on how often you can afford to upgrade and how long you need security fixes to keep arriving on a version you have tested. According to Metabase's version support page, LTS versions are supported for 14 months, while non-LTS versions usually reach end of life after 2 months, so monthly releases mean upgrading far more often. Metabase 64 is an LTS release published on 16 September 2026 with end of life on 1 December 2027. If your organization runs formal change control or needs a stable baseline for compliance evidence, the LTS line usually fits better. Teams that want new features quickly and have a steady upgrade routine may prefer monthly releases. Confirm the current support dates on the version support page before you decide.

What happens if a Metabase migration fails during the upgrade?

If a migration fails, the instance may not start correctly, so the plan must include a rollback before you begin. Metabase's upgrading documentation recommends restoring the pre-upgrade application database backup, which is the most predictable route. The other documented option is running the migrate down command with the newer JAR, which is less simple and needs careful checking. Content created after the upgrade may be lost when you restore a backup, because the backup reflects the database as it was before the change. Decide in advance who approves the rollback, how long the team will wait before choosing it and how you will tell users. Rehearse the restore in staging so the procedure is not new during an incident.

What changes if our Metabase runs as a cluster?

A cluster needs extra planning because the Metabase upgrading documentation recommends reducing the cluster to a single node for major upgrades, since migrations take a lock on the application database. In a Docker setup this means stopping or scaling down the other containers, running the migration on one node, checking it, and then scaling back out. Your orchestrator must not restart the migrating container during the process, or it may interrupt the migration. Confirm how your container platform handles restarts, health checks and timeouts before the window. Multi-node upgrades therefore involve more coordination, more time in the window and a clear sequence for scaling back out.

Do we need a separate image for Open Source and paid editions?

Yes, you should keep them apart. Metabase publishes the metabase/metabase Docker image for the Open Source edition and metabase/metabase-enterprise for Pro and Enterprise. Pulling the wrong image can change the features that run, which matters if you use SSO or other paid capabilities. Pin each environment to an explicit version tag rather than latest, as Metabase's Elastic Beanstalk guide advises, and record which image family each instance uses. Before an upgrade, confirm your current edition and license, because the paid plans and the features listed on Metabase's pricing page are not all available on the Open Source edition.

Rolling back when the new version misbehaves

Decide the rollback point before you start the upgrade. Metabase documents two ways back from a failed upgrade: restoring the pre-upgrade application database backup, which Metabase recommends, or running the migrate down command with the newer JAR. For a containerized deployment, the first path means stopping the container on the new tag, restoring the backup you took before pinning the new image, and starting the previous tag against that restored database. The backup is the rollback point. Anything written to the application database after the backup was taken, including saved questions, dashboards, collections, users, groups and settings changed after the upgrade, is gone once you restore it. Confirm with your team who has been using the instance since the upgrade and whether that content can be recreated before you commit to a restore.

The second path keeps the database as it is and asks the newer JAR to reverse its schema changes. That preserves content created after the upgrade, but it depends on the migrate down command working cleanly against the schema the new version wrote, and the Metabase upgrade documentation is the reference for the exact invocation. In a Docker setup, the command runs against the newer image, so the image tag you planned to roll back from must still be available in your registry. Test both paths on a copy of the application database before production cutover, and record which one you would use for each failure you can foresee. A sibling topic on rolling back a Metabase upgrade covers how each path affects content created after the upgrade in more depth.

How DeployOpen scopes and delivers a Metabase Docker upgrade

DeployOpen treats a Metabase Docker upgrade as a written, fixed-scope change to your running instance. We agree the target image, the backup method and the verification steps before anything changes, then deliver the upgrade inside your own infrastructure with the evidence your operations and compliance teams need.

How we scope

  • Inventory the current image tag, edition (Open Source or Enterprise image) and the application database in use.
  • Confirm the target release line, whether an LTS or monthly release, and the release-by-release path from your current version.
  • Agree the application database backup method, restore test and the window in which the upgrade runs.
  • Record who approves the change, who watches the startup logs and what counts as a successful upgrade.

How we build

  • Pin the new image to an explicit version tag in your Docker Compose file or orchestrator manifest, never :latest.
  • Back up the application database and confirm the backup restores before the container is replaced.
  • Start the new container and watch the automatic migration output in the logs until the application reports ready.
  • Check sign-in, saved questions, dashboards and data source connections against a checklist you approve.

How we hand over

  • Deliver a written runbook with the exact image tags, backup commands and restore steps used for your environment.
  • Document the rollback path, including restoring the pre-upgrade backup, and who decides to use it.
  • Keep Open Source and Enterprise image references separated in configuration and record which edition each instance runs.
  • Provide the upgrade record your change management and auditors can review later.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, scoped in writing after the initial upgrade.
  • Plan the next upgrade against the version support dates so each move is scheduled rather than forced.
  • Retest sign-in and permissions after each upgrade so access controls keep working as expected.
  • Confirm the scope, deliverables and timelines in writing before any work starts.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.