I have been working on a ruby rails app and ran into a peculiar problem using Docker. Whenever I tried to add a gem, I would run docker-compose run web bundle install and I would get the error message,

Error Message

The log, after running the bundle install command, showed that it installed

says installed

However, it was not saving. To solve this problem I had to run bundle install inside the container :/