Build your image docker-compose build Create Rails Project docker-compose run web rails new . Overwrite files While creating the rails project, you will be asked about overwrite this README.md file and Gemfile as well. Choose yes for both.