Failed upgrade from 2.9.0.beta14 to 3.1.0.beta

If those are development installs they won’t be representative of a production docker install. Your dev environment has an old version of ruby (2.7), whereas Discourse recently bumped up to 3.1 in the image.