Move from Docker install NC to NextcloudPI : which version ? Safe?

Hello,
I have a docker NC install on RAspbian Stretch, and I would like to switch to a brand new install flashing my SD Card with NextcloudPi.
I plan to save my config, data & to dump my database, but I am worried about Nextcloud version compatibility when I will restore to the NCPi instance.
What should be the minimum NC release of my docker instance to fit the NCpi latest release ?

today my docker instance runs NC 22.2.3, but I am not sure which version I will get with NCpi

thanks for your help