Redmine & rake version: how to update for user redmine
You should install your rake and ruby via rvm under redmine user, reffer to this question on stackoverflow How to correctly install RVM in Docker?
And once you are done with RVM, re-run bundle install
for Redmine.