Upgrading XWiki Docker deployments safely

A container upgrade of XWiki is a tag change, a database and volume backup, a first-start migration and a tested rollback path. This page explains how to plan and run each step on infrastructure you control.

On this page

Upgrading XWiki Docker deployments safely starts with pinned tags

The safe way to upgrade a containerized XWiki is to change one pinned image tag, after taking a verified backup of the database and the permanent volume, and then let the new image run its data migrations on first start. If the result is wrong, you stop the new container, restore the backup and start the previous tag. Every step depends on the tag being an exact version, so the first decision is which exact version you move to. The official images are published under three tags at the time of research: 18.8.0 for the stable line, 17.10.14 for the long term support (LTS) line and 18.4.7 for the intermediate LTS line. Pin the full tag in your Compose file, Kubernetes manifest or deployment template, and never use latest or a bare lts tag, because either can change under you on the next pull.

Choose the database variant before you choose the version. The official images come in MySQL, PostgreSQL and MariaDB variants, each running on Tomcat, for amd64 and arm64v8. Your running instance already uses one of these, so the upgrade must keep the same variant and the same database engine, not switch it in the same change. Confirm the variant and exact tag your current container runs with docker inspect and your deployment files, and record the Tomcat and Java versions that the target tag ships with, as described in the official image documentation linked from the pillar.

A container upgrade is still a data upgrade. The image holds the application code, while the wiki content, attachments, extensions and configuration live in the database and the permanent directory mounted into the container. On first start, XWiki compares the stored data with the new code and runs its migrations, which can change the database schema and content. That step cannot be undone by removing the container, so the backup must be taken before you change the tag, must cover both the database and the permanent volume, and must be restored and tested on a separate copy first. Ask your team to confirm who owns the backup schedule, where restores are tested and how long the previous image tag stays available for rollback.

What changes between the XWiki image lines

This table compares the stable, LTS and intermediate LTS image lines across the changes that affect a container upgrade: tags, runtime, image variants, extensions and schema migration. Read each row as a question to answer for your target version, and confirm every entry against the XWiki release notes for that version before you change a tag.

ChangeWhat differsAction needed
Image tags at research timeStable 18.8.0, intermediate LTS 18.4.7, LTS 17.10.14Pin the exact tag you choose. Do not deploy latest or lts, because the tag can move under you.
Java and Tomcat runtimeRuntime differences between lines follow the sibling upgrade pages, such as the Tomcat 9 to 10 change between 16.10 and 17.10 and the Java 21 requirement for 18.xRead the sibling page for your source and target line, then confirm the Java and Tomcat versions in the release notes for your target version.
Image variantOfficial images come in MySQL, PostgreSQL and MariaDB variants, each on Tomcat, for amd64 and arm64v8Keep the same database variant you run today unless you plan a database change as a separate project. Confirm the variant tag exists for your target version.
Extension compatibilityExtensions and Pro applications are built against a specific XWiki line, so a version change can disable or break themInventory every installed extension and confirm a release exists for the target line before you upgrade. Test each one on a copy.
Database schema migration on first startXWiki runs data migrations when the new container starts against an existing database and permanent directoryTake a database dump and a copy of the permanent directory first. Watch the startup log and confirm the migration finishes before you open the wiki to users.
Patch levels within a linePatch releases on the same line usually carry fixes and smaller migrations than a line changeConfirm the fixes in each patch release notes. Move to the newest patch on your current line before a line change, if the release notes recommend it.
Support and security coverageStable, LTS and intermediate LTS lines receive fixes for different periodsCheck the XWiki release and security pages for your target line, and confirm the support window with XWiki SAS or your release notes.

Which target tag fits your deployment

Staying on 17.10 is the lowest-change path when your custom code, extensions and Pro applications already run cleanly on 17.10. The team gains a fixed target, no change to the Java runtime and a shorter test cycle, and it can still move to a newer line later. At the time of research the official image tag for this line was 17.10.14. Pin that exact tag in your compose file or Kubernetes manifest and avoid floating aliases such as lts or latest.

  • Patch level: If your instance runs an older 17.10 patch, read the release notes for every patch between your current version and 17.10.14 before you change the tag.
  • Extensions and Pro applications: Confirm that each installed extension and Pro application declares compatibility with 17.10.14. Record the result in the change ticket.
  • Database variant: Keep the same MySQL, PostgreSQL or MariaDB image variant so the database driver and schema path stay unchanged.
  • Support window: Do not assume this line receives fixes indefinitely. Check the published end-of-support date on xwiki.org before you plan a longer stay.

Before the tag change, confirm the Tomcat version shipped in the 17.10 image, using the sibling page on the 16.10 to 17.10 move as your reference.

Preparation before you upgrade XWiki Docker containers

The four cards cover what must exist before any image tag changes: a restorable database backup, a copy of the permanent volume, a list of extensions and custom code, and a test instance built from those backups. Each item has a named sign-off, so the upgrade starts only when the owners agree that the rollback path is known.

Verified database backup

Take a dump of the XWiki database before any tag changes, using the tooling that matches your database variant (MySQL, PostgreSQL or MariaDB). Keep the file outside the container host, record its checksum, and restore it into a scratch database to confirm it loads. If you run PostgreSQL with continuous archiving, note the base backup and WAL position. The database administrator signs off that the restore finished and that row counts look right.

Continuous archiving docs

Permanent volume backup

Copy the permanent directory that holds attachments, uploaded images and instance configuration, such as xwiki.cfg and xwiki.properties. Stop the container first so files are not written during the copy, then archive the volume with its ownership and permissions intact. Write down the image tag and digest currently running so that rollback has a known target. The service owner signs off that the archive is complete and that its file listing matches the live volume.

Docker image documentation

Extension and custom code inventory

List every extension installed in the wiki, including its version, its source (XWiki Store, an xwiki-contrib repository or a custom build) and whether it is a Pro app. Export the list from the administration interface and from the extension manager, then compare them, since the two can differ. Keep custom Java code, skins and XAR files in version control alongside the build that produced them. The wiki administrator and the developer who owns the custom code sign off that every item has a known compatibility status for the target line.

Test copy from the same backups

Start a copy of production from the backups in an isolated network, using the same database variant, environment variables and Tomcat settings. Run the target tag on the copy first and let migrations run on first start. Then check login, search, a sample of pages, attachments and each extension. Record how long startup and migrations took, since that sets the window for production. The business owner of the wiki signs off that the copy behaves correctly before any change is made to production.

Why pinned tags replace latest and lts in production

A floating tag such as latest or lts lets the running XWiki version change on the next pull, without a planned change window. Pin the exact version tag, such as 17.10.14 or 18.8.0, in every production deployment. Without a pinned tag, the team cannot say which release is running, which schema migrations ran on the last start, or which image to roll back to. A restart that pulls a new image can also run a newer migration against the production database before anyone has tested it on a copy. The official tags are listed in the official images library file, and the current stable, LTS and intermediate LTS tags there are the only values to use as a starting point for a change.

Record the exact tag in the file that defines the deployment, whether that is the image: key in a Compose file, the image.tag value in Helm values, or the container image field in a Kubernetes manifest. Keep that file in version control so each change to the tag is a reviewed commit with an author, a date and a reason. Confirm the tag list in the official images library file before each change, because the list changes as new releases are published, and check that the tag you choose matches the database variant you run (MySQL, PostgreSQL or MariaDB). Where your registry supports it, also record the image digest next to the tag. A digest identifies the exact image bytes, so a tag that is later republished cannot silently change what you deploy, and your rollback record points to the same artifact that ran before.

The upgrade runs from backup to a verified target tag, with a rollback branch

The flow starts with an inventory of the running tag, extensions and database version, then takes backups of the database and the permanent volume before anything changes. The backups are restored to a staging copy, where the pinned tag is changed and the container is started so the migrations run on first start. Verification happens on the staging copy before production is touched. If verification fails, the rollback branch restores the backups and returns the container to the previous pinned tag.

Upgrade phases from inventory and backup to verification, with the rollback branch.

Steps to upgrade XWiki Docker from one pinned tag to another

This sequence moves a running XWiki container from one pinned image tag to another while keeping a restorable copy of the data at every stage. Each step ends with a check that must pass before the next one starts.

  1. Freeze changes and record the current state

    Announce a change window and stop edits to the wiki's extensions, configuration and custom code for its duration. Record the current image tag, the database engine and version, the Tomcat and Java runtime the container reports, and the list of installed extensions. The change owner signs off on this record, and it is done when the record is stored with the change ticket. Confirm the target version and its release notes before you go further, since the target tag decides which extensions and Java requirements must be checked.

  2. Back up and verify the database and volume

    Take a dump of the database that the wiki uses, and a copy of the permanent volume that holds XWiki's data and configuration, while the old container is stopped or in a consistent state. Verify both: restore the database dump into a scratch database, and list the volume copy to confirm the expected files and sizes. The step is complete when both restores succeed. This backup is your first rollback point, and nothing after this step should overwrite it.

  3. Rehearse the upgrade on a staging copy

    Start a staging container with the new tag, using a copy of the production database and volume, and keep it off the public network. Let the migrations run on first start, then run the checks from the final steps against the copy. Note any extension that fails to load, any log error and the migration duration. The rehearsal is done when the staging copy passes every check and the issues found are either fixed or accepted in writing. If it fails, fix the cause and repeat from the backup step.

  4. Change the pinned tag in version control

    Edit the image reference in the deployment definition, such as a Compose file, Helm values or a Kubernetes manifest, from the old tag to the new explicit version tag. Do not use latest or a floating lts tag, because those can change under you on the next pull. Commit the change with a reference to the change ticket and the staging results, and have a second person review the diff. The step is complete when the merged commit shows the exact new version and the previous commit is still available for reverting.

  5. Pull the new image and start the container

    On the production host or cluster, pull the image for the exact pinned tag, confirm its digest matches what was tested in staging if your registry provides one, and start the container with the new definition. Keep the old image on the host so the previous version can be started again. Confirm the container is running and that the image reference shows the new tag. This step is complete when the container starts without restart loops.

  6. Watch the logs until migrations complete

    Follow the container logs from start to finish and wait for the message showing that XWiki has started and that database migrations have completed, without errors or stack traces. Do not send user traffic during this period, because a partly migrated wiki can show inconsistent pages. Investigate any exception before continuing, and treat repeated restarts as a failed upgrade. The step is done when the log shows a clean start and the migration has finished.

  7. Run health and functional checks

    Test the instance with a test account. Confirm that login works, including any SSO path, that existing pages render with their content and macros, that search returns known pages, that attachments open and download, and that each extension in the recorded list loads and behaves as before. Review the administration health checks if they are available in the release. Record each result. The step passes only when every check succeeds. If a check fails, roll back to the previous tag using the recorded backup and the old image.

  8. Open the change to users and keep the rollback window

    Reopen write access to users and announce the completed change, including what changed and who to contact for problems. Keep the pre-upgrade database and volume backups, and the old image tag in the deployment history, until the owner confirms the new version is stable in real use. Close the change ticket with the check results attached. The change is complete when users can work normally and the rollback materials are archived with a stated retention owner.

How migrations run on first start and how to roll back

The schema and data migration runs when the new container first starts against your existing database and permanent volume, so rollback is a restore, not a reversal. Once XWiki has upgraded the database schema and rewritten data in the volume, starting the previous image against those files is not a safe way back. The practical rollback is to stop the new container, restore the pre-upgrade database backup and the pre-upgrade copy of the permanent volume, and start the previous pinned tag. Before you rely on this path, confirm in the release notes for your target version whether it documents any downgrade support. If it does not, treat the backup pair as your only way back.

Backups only work as a pair if they describe the same moment. Take the database dump and the volume archive in the same maintenance window, after stopping writes to the wiki, and label both with the exact image tags before and after. A database backup taken an hour before the volume archive can leave pages, attachments or extension data that disagree with the schema. After any restore, check that the previous tag starts cleanly, that the home page and a sample of recently edited pages render, that attachments download, that search returns results, that users can log in through your identity provider, and that the administration pages and extensions load without errors in the logs. Run a restore of the database backup into a scratch instance before the change, so you know the dump is readable.

What makes a container upgrade take longer

This table lists the factors that most often stretch an XWiki container upgrade, the effect each one has, and the step that keeps it under control. Read it before you estimate the work, because the same image bump can take a day on a small wiki with no custom code and weeks on a large one with old extensions.

DriverWhy it changes the effortHow to keep it down (and who does it)
Number and age of extensionsEach extension must support the target XWiki line. Old or abandoned extensions block the upgrade or need replacing, and each one needs its own test pass.Inventory every extension and version before choosing a target. Client admins list them, and the implementation partner or internal platform team checks compatibility and replaces dead ones.
Custom Velocity or Groovy codeCustom macros, scripts and templates can rely on APIs that change between lines, and they fail at runtime rather than at startup.Move custom code into reviewed extensions where possible. Developers write regression checks for key pages, and the wiki owner signs off on results.
Data volume in the database and attachmentsLarger databases and attachment stores lengthen backups, restores and the migration run on first start. Backup and restore timing becomes the main window risk.Measure database size and attachment storage before the change. The platform team times a full backup and restore on a copy so the window is known in advance.
Database engine and versionPostgreSQL 14 supports through November 12, 2026; 15 through November 11, 2027; 16 through November 9, 2028; 17 through November 8, 2029; 18 through November 14, 2030 (PostgreSQL versioning policy). An old database may need its own upgrade first.Confirm the database major version against the support dates. The database owner plans any major upgrade as a separate change, with its own backup and rollback.
Number of wikisEach wiki in one instance has its own content, extensions and permissions to verify, so test coverage grows with the count.List wikis and their owners. Assign a named tester per wiki and test one representative page set on each.
Staging copy with production-sized dataWithout a staging copy, the first real run of the migration happens on production data, and problems surface in the live window.Build a staging copy from a recent production backup, with the same image tag and database version. Client admins approve the test plan, and the platform team runs the rehearsal.

What buyers ask before paying for an XWiki Docker upgrade

What does an XWiki Docker upgrade cost?

The cost is set by the written scope, which DeployOpen agrees with you before work starts, and no price list is published. The main drivers are the number of XWiki instances, whether the wiki runs the standard image or custom configuration, how many extensions and Pro applications need compatibility checks, the size of the database and attachment volume that must be backed up and restored in staging, and how much test effort your users can provide. Ask for a quote that separates the staging rehearsal, the production cutover, the rollback plan and any post-upgrade support, and state which of these recur. Upgrades are usually one-time work, while ongoing support is a separate retainer. Confirm the licensing position too: XWiki Standard is free and open source, while XWiki Pro and support subscriptions are priced by user tier and carry their own terms.

How long does an XWiki Docker upgrade take?

Duration depends on how many rehearsals the scope includes, how much custom code and extension work must be fixed, the size of the database and permanent volume, and how quickly your owners can test. A simple standard install with few extensions moves faster than a wiki with custom Velocity or Groovy code and several Pro applications. Migrations run on the first start of the new image, so the staging run is the best measure of the production window, and the number of staging cycles drives total time. Ask for the planned number of test passes, the owner for each sign-off step and the agreed cutover window in writing. No duration is given here because none is supplied for this work.

What must our team provide before an upgrade starts?

Your team provides access, current backups and named owners. Access means administrative access to the container host, the registry or image mirror, the database server and the permanent volume, plus the wiki administrator account. Backups must include a dump of the database and a copy of the permanent volume, taken and verified before any change. Each extension and Pro application needs an owner who can confirm the target version is acceptable. Test users should cover common spaces, editing, attachments, search and permissions, and a business owner must give written sign-off on the staging results and the production cutover. If your team cannot provide these, the schedule will slip regardless of who performs the technical steps.

Can our own team upgrade XWiki Docker without a partner?

A team that already runs containers and a relational database can usually perform the steps, provided it has someone who can pin image tags, read Tomcat and Java logs, restore a database dump and validate wiki content. The upgrade is a version change with a first-start migration, so the skill gap is mostly in testing and rollback rather than in the commands. Teams without that experience, or with heavy custom code, often choose a partner for the rehearsal and runbook. A useful test is whether your team can restore the backup to a separate host and start the old version there within a planned window. Check the required skills against the target line, since moving to newer lines can change the Java and Tomcat requirements.

Will DeployOpen sign off on our production upgrade?

DeployOpen does not issue audit reports, attestations or certifications, and it cannot approve your change on your behalf. What it can do is plan the upgrade, perform the staging rehearsal, document the steps and rollback path, and hand over evidence of what was tested and what changed. Production approval remains with your change board and the owners you named. The written scope should state which evidence is delivered, which tests were run on a copy of production, and which items remain your decision. If your organization needs an independent assessment of the resulting controls, that comes from an auditor or certification body.

What happens if extensions or custom code break after the upgrade?

Extensions and custom code are the most common source of delay, because an extension built for one XWiki line may not work on another. Before the upgrade, list every installed extension, its version, its source and its owner, then confirm which versions support the target line. Pro applications and connectors should be checked against the vendor's supported versions. Custom code that depends on older Java or Tomcat behavior needs changes or replacement in staging. If a dependency cannot be fixed in time, the usual choice is to delay the cutover or remove the feature, and the scope should say which of these applies. Plan this check before quoting, because it often determines the work.

How do we keep the wiki safe during and after the upgrade?

Keep the image tag pinned to a specific version, keep the administrative interface restricted to your network, and confirm that the database and permanent volume are encrypted and backed up under your existing policy. Use a staging copy with the same data to test permissions, search, attachment access and single sign-on before cutover, and confirm that the production secrets are not copied into logs or test notes. Record which image digest and tag were deployed so that the rollback target is known. Confirm your patch process for the target line, since security fixes are published per version and the team must know which version receives them.

How DeployOpen works on this

DeployOpen plans, implements, backs up, upgrades, documents and supports self-hosted open-source platforms inside your own infrastructure, including container deployments of XWiki. For a Docker upgrade, we start from your current image tag, database and permanent volume, then agree a written scope before any change is made to your running instance.

How we scope

  • We record the current image tag, database variant and Tomcat-based runtime before proposing a target version.
  • The written scope lists the target tag, extensions to check, backup method and rollback steps for your environment.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we build

  • We pin exact version tags in your Compose file or manifests, replacing any latest or lts references.
  • We rehearse the upgrade on a copy of production, including database and permanent volume, before the real window.
  • We run the migrations on first start in the test copy and record the logs, errors and any manual steps.

How we hand over

  • You receive the pinned configuration, the tested upgrade runbook and the verified backup and restore procedure.
  • The rollback plan documents which volume, database snapshot and image tag restore the previous working state.
  • Documentation covers the checks we ran after upgrade, so your operators can repeat them on future upgrades.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after the first upgrade.
  • A retainer can cover monitoring of new XWiki image tags and planning of the next upgrade window.
  • Ask us to confirm the support scope, response expectations and included upgrade work in the written quote.

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.