Your OS is almost certainly out of date too.
The easiest thing is to create a new VM with a new OS and a new Docker, install Discourse and restore a backup.
It’s possible that you can upgrade docker and try again, but you’ll still need to deal with the PostgreSQL 15 update. Moving to a new server will require little downtime and zero chance of leaving your system in a broken state.