How do I install a stable version of Discourse on Docker locally?

You should be able to cd into the source directory and use git to checkout the version you want. You’ll need to drop, create, and migrate the database.