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 onlyoffice/documentserver-ee
sudo docker run -i -t -d -p 80:80 --restart=always \
-v /host_folder:/volume \
-v /host_folder:/volume 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}}