I\'ve seen lots of examples of making Docker containers for Rails applications. Typically they run a rails server and have a CMD that runs migrations/setup then brings up the Ra
docker run rake db:migrate
Starts you standard application container but don't run the CMD (rails server), but rake db:migrate
rails server
rake db:migrate
UPDATE: Suggested by Roman, the command would now be:
docker exec rake db:migrate