This page describes various scenarios of upgrading an existing YouTrack service using the YouTrack docker image.
Prerequisites
Before you upgrade, perform the following prerequisite tasks:
Create a backup of your current database. YouTrack Standalone does not provide forward database compatibility. Your database is migrated to the format that is compatible with the latest version during the upgrade procedure. This means that you cannot revert to a previous version and continue to use the database that was processed during the upgrade.
Copy the backup of your current database to a secure location just in case you encounter problems with the upgrade and need to roll back to the previous version.
Verify that your YouTrack license supports the upgrade. To view the license limitations, click the Global Settings link in the Administration menu. If your free update period has expired, you need to extend your subscription.
Mind the recommended upgrade path. The current version of your installation is shown at the bottom of any page in the application.
Recommended upgrade path
Existing version
Upgrade to version
6.5 or earlier
YouTrack 7.0
7.0
2017.1
2017.x
2018.x
2018.x
2019.x
Upgrade a Docker Image
Create a backup of the YouTrack database while your existing YouTrack installation is running.
Execute the following command to run a container with the new YouTrack version, that you have pulled from the repository. All other attributes of the command (volumes and port mappings) must be the same as you have used to run the previous version of the YouTrack image:
docker run -it --name <arbitrary-youtrack-container-name>\
-v <path to data directory>:/opt/youtrack/data \
-v <path to conf directory>:/opt/youtrack/conf \
-v <path to logs directory>:/opt/youtrack/logs \
-v <path to backups directory>:/opt/youtrack/backups \
-p <port on host>:8080 \
jetbrains/youtrack:<new version>
In the console output, an URL to the web-based Configuration Wizard is provided.
In a browser, open the web-based Configuration Wizard by the URL.
Review the upgrade settings. Click Next.
Review you license. If required, you can also update your license on this page.
When done, click Upgrade.
YouTrack Standalone launches its components.
Do not close the page in the browser until the setup is complete. When the YouTrack Standalone server is ready, you are redirected to the login page.
Enter the credentials for the YouTrack Standalone administrator account and click the Log in button.
YouTrack opens to the Dashboard page.
Your YouTrack Standalone installation is upgraded and ready to use.
Upgrade Another Installation with Docker Image
Create a backup of the YouTrack database while your existing YouTrack installation is running.