Upgrade rails & make it work with docker container