Build fails due to ruby version mismatch

You were just lucky, or more likely, docker hadn’t restarted, and it for some reason (an upgrade or machine reboot).

The ruby version error is a mystery to me.