You need to move to a new virtual machine. It’s likely that your os is to old to upgrade docker you a supported version.
It’s better to move to a new vm that will be on newer hardware that is faster and cheaper.
You can see Move a Discourse site to another VPS with rsync.
If you want to pay to have it done you can contact me via dashboard.literatecomputing.com