Updating using the script
If your ONLYOFFICE Docs version was installed using the
script
script, execute the following command:
bash docs-enterprise-install.sh -u true
bash docs-developer-install.sh -u true
Type Y and press Enter to update ONLYOFFICE Docs using Docker.
ONLYOFFICE Docs Enterprise Edition Docker version will be updated using the script only if the installation was previously performed using this script.
Updating manually
Step 1: Check if all the external data storage folders are mounted
Make sure that all the container volumes used to store ONLYOFFICE Docs data are mounted using the following command:
sudo docker inspect --format='{{range $p,$conf:=.HostConfig.Binds}}{{$conf}};{{end}}' {{DOCUMENT_SERVER_ID}}
Step 2: Stop the current ONLYOFFICE Docs Docker container.
sudo docker stop {{DOCUMENT_SERVER_ID}}
Step 3: Download the latest ONLYOFFICE Docs image
Download the latest ONLYOFFICE Docs image specifying the latest
tag:
docker pull onlyoffice/documentserver-ee:latest
docker pull onlyoffice/documentserver-de:latest
Step 4: Run the new image with the same map paths
sudo docker run -i -t -d -p 80:80 --restart=always \
-v /host_folder:/volume \
-v /host_folder:/volume -e JWT_SECRET=my_jwt_secret onlyoffice/documentserver-ee
sudo docker run -i -t -d -p 80:80 --restart=always \
-v /host_folder:/volume \
-v /host_folder:/volume -e JWT_SECRET=my_jwt_secret onlyoffice/documentserver-de
Make sure that you run the new image with the folder paths mapped exactly as they had been mounted for the previous version, otherwise the data stored in these folders will not be picked up automatically. To do that, specify the -v
option arguments replacing the /host_folder:/volume
values with the actual paths as they were shown in Step 1.
If you've installed the previous version using a different port or HTTPS and want to install the new version in the same way, please refer to the
installation instruction
installation instruction
to find the necessary commands.
Once the installation process is over, run ONLYOFFICE Docs and check it for correct work.
Step 5 (Optional): Remove old ONLYOFFICE Docs container and image
After you make sure that everything is ok and your updated ONLYOFFICE Docs version works correctly, you can remove an old ONLYOFFICE Docs container:
sudo docker rm {{OLD_DOCUMENT_SERVER_CONTAINER_ID}}
where {{OLD_DOCUMENT_SERVER_CONTAINER_ID}} stands for the OLD ONLYOFFICE Docs container name or ID.
If you want to free up space, you can also remove an old image. Display all docker images:
sudo docker images -a
Find the unnecessary image ID in the image list and remove the image:
sudo docker rmi {{OLD_DOCUMENT_SERVER_IMAGE_ID}}
The database schema has been changed in v6.3. When updating to v6.3 (if you use the Docker version of
ONLYOFFICE Docs with an external database), you may also need to upgrade the database schema to ensure the ability to use the
password protection feature.
- Download the script for upgrading the database schema.
- Execute the script using the command line.
- For PostgreSQL:
psql -U onlyoffice -W onlyoffice < {path-to-upgradev630.sql}
- For MySQL:
mysql -u root -p onlyoffice < {path-to-upgradev630.sql}
Specify the password used when creating the database (onlyoffice
).