Unable to access rails console with hosted rails app

It looks like your Dockerfile may have been generated before 29 January 2023, and if so you want:

 fly ssh console --pty -C "/app/bin/rails console"