Because i have found this article and did it myself, i want to add this:
https://wiki.servarr.com/docker-arm-synology
By executing a single command (using the script) it successfully installed docker on my nas without issues.
And just in case this link is one day no longer available, maybe the github, that was the execution of the script:
curl https://gist.githubusercontent.com/ta264/2b7fb6e6466b109b9bf9b0a1d91ebedc/raw/b76a28d25d0abd0d27a0c9afaefa0d499eb87d3d/get-docker.sh | sh```