Once installed you need to restore data manually. To do that copy the backup data from the folder on your host machine to the new container:
sudo docker cp /path to the directory/Data/. {{COMMUNITY_SERVER_ID}}:var/www/onlyoffice/Data
Where /path to the directory/
is the path to the folder where the backup is stored.
Alternatively, you can copy the backup data from the folder on your host machine to the new mounted /app/onlyoffice/CommunityServer/data
folder on the host that you have specified during the new version installation:
sudo cp -a /path to the directory/Data/. /app/onlyoffice/CommunityServer/data
After that copy the latest database to the container and restore it using any available software you have for such purposes. The portal data files need to be in the mounted /var/www/onlyoffice/Data
folder.
That's all. Now you can run the portal and check the data for consistency and correct work. If needed (i.e. if there is a Docker version higher than Linux version available at the moment), you can Upgrade your Docker ONLYOFFICE Groups to the latest version.