## Installing SonarQube from the Docker Image
-See your SonarQube version below for instructions on installing the server from a Docker image.
-
-### SonarQube 8.2+
-
Follow these steps for your first installation:
1. Creating the following volumes helps prevent the loss of information when updating to a new version or upgrading to a higher edition:
| postgresql_data:
| ```
-### SonarQube 7.9.x LTS
-
- Follow these steps for your first installation:
-
- 1. Create volumes `sonarqube_conf`, `sonarqube_data`, `sonarqube_logs`, and `sonarqube_extensions` and start the image with the following command. This will populate all the volumes (copying default plugins, create the Elasticsearch data folder, create the sonar.properties configuration file). Watch the logs, and, once the container is properly started, you can force-exit (ctrl+c) and proceed to the next step.
-
- ```console
- $ docker run --rm \
- -p 9000:9000 \
- -v sonarqube_conf:/opt/sonarqube/conf \
- -v sonarqube_extensions:/opt/sonarqube/extensions \
- -v sonarqube_logs:/opt/sonarqube/logs \
- -v sonarqube_data:/opt/sonarqube/data \
- <image_name>
- ```
-
-2. Configure sonar.properties if needed. Please note that due to [SONAR-12501](https://jira.sonarsource.com/browse/SONAR-12501), providing `sonar.jdbc.url`, `sonar.jdbc.username`, `sonar.jdbc.password` and `sonar.web.javaAdditionalOpts` in `sonar.properties` is not working, and you will need to explicitly define theses values in the docker run command with the `-e` flag.
-
- ```plain
- #Example for PostgreSQL
- -e sonar.jdbc.url=jdbc:postgresql://localhost/sonarqube
- ```
-
-[[info]]
-| Drivers for supported databases (except Oracle) are already provided. Do not replace the provided drivers; they are the only ones supported. For Oracle, you need to copy the JDBC driver into `$SONARQUBE_HOME/extensions/jdbc-driver/oracle`.
-
-3. Run the image with your JDBC username and password :
-
- ```console
- $ docker run -d --name sonarqube \
- -p 9000:9000 \
- -e sonar.jdbc.url=... \
- -e sonar.jdbc.username=... \
- -e sonar.jdbc.password=... \
- -v sonarqube_conf:/opt/sonarqube/conf \
- -v sonarqube_extensions:/opt/sonarqube/extensions \
- -v sonarqube_logs:/opt/sonarqube/logs \
- -v sonarqube_data:/opt/sonarqube/data \
- <image_name>
- ```
-
## Next Steps
Once your server is installed and running, you may also want to [Install Plugins](/setup/install-plugin/). Then you're ready to begin [Analyzing Source Code](/analysis/overview/).
**Migration Path Examples**:
-**Example 1** – From 6.1 > 8.1, the migration path is 6.1 > the latest 6.7 LTS patch > the latest 7.9 LTS patch > 8.1
-**Example 2** – From 7.2 > 7.9 LTS, the migration path is 7.2 > the latest 7.9 LTS patch.
-**Example 3** – From 5.6.3 LTS > 7.9 LTS, the migration path is 5.6.3 LTS > 6.7.7 LTS > the latest 7.9 LTS patch.
+**Example 1** – From 7.1 > 8.1, the migration path is 7.1 > 7.9.6 LTS > 8.1
+**Example 2** – From 8.2 > 8.9 LTS, the migration path is 8.2 > the latest 8.9 LTS patch.
+**Example 3** – From 6.7.7 LTS > 8.9 LTS, the migration path is 6.7.7 LTS > 7.9.6 LTS > the latest 8.9 LTS patch.
## Upgrade Guide
4. Reanalyze your projects to get fresh data.
-#### **From 7.9.x LTS to another 7.9.x LTS**
+#### **From 8.9.x LTS to another 8.9.x LTS**
No specific Docker operations are needed, just use the new tag.